Frederic QUIN writes:
 > I have a string variable "expres" which contains a python expression.
 > I would like to do <dtml-call "expres.manage_addFolder('new_folder')"> but
 > Zope raises an error. expres is considered as a string and is not
 > interpreted by Zope. So I wonder if there is a function which evaluate the
 > python expression situated in my string variable...
The Python built in function "eval" does this (for expressions).
It is, however, not exported to DTML.
Thus, you need an external method.


Dieter

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to