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

Andreas Jung lists at zopyx.com
Sun Aug 5 23:27:04 EDT 2007



--On 3. August 2007 12:45:47 -0400 Tres Seaver <tseaver at palladion.com> 
wrote:

>
>
> -----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']

Evil DTML magic...another reason why we should hide DTML from mortal
Zope developers :->

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070806/c4131429/attachment.bin


More information about the Zope mailing list