You can't use 'eval' in either a DTML method or a python script. You have to create an external method to use 'eval'. Jonathan ----- Original Message ----- From: "Kevin Carlson" <khcarlso@bellsouth.net> To: <zope@zope.org> Sent: February 6, 2004 1:13 PM Subject: [Zope] eval in DTML
Hi everyone,
Is it possible to use python's eval method from inside a DTML method? I have a parameter that is passed into the method that is the string representation of a python list and I wanted to use eval to convert it to a list that I could iterate over.
Thanks,
Kevin
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )