[Zope] Re: having a dtml-var as arguments of a python script

Tres Seaver tseaver at palladion.com
Fri Aug 3 12:45:47 EDT 2007



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Jung wrote:
> 
> --On 3. August 2007 17:15:30 +0200 Martin Krallinger <mkrallinger-qoLWqpkMHMQ at public.gmane.org> 
> wrote:
>> <dtml-call expr="tag_entity('<dtml-var bd_abs>','<dtml-var keyword>')">
> 
> Obviously this will work:
> 
>   <dtml-call expr="tag_entity(bd_abs,keyword)">

You can also just do::

   <dtml-call tag_entity>

and set the "Namespace" binding on the "Bindings" tab of the script to
'_", which would allow the script to the DTML namespace directly, e.g.::

  x = _['bd_abs']



Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGs1u7+gerLs4ltQ4RAq53AJ9A2gfdLIvpK5kuk+r+zPM1ghesRACfaD/8
hzgUnttZxVnFRrJQT+UsWKs=
=8dIq
-----END PGP SIGNATURE-----



More information about the Zope mailing list