Re: [Zope] Using the set object within page templates
Is there no way to allow sets to be used within templates/scripts? fm
Andreas Jung <lists@andreas-jung.com> 9/26/2005 1:41:18 PM >>> Python sets are not available from with ZPT since ZPT and PythonScripts run within a sandbox. Write an external method or move your code to trusted code (Zope product).
-aj --On 26. September 2005 13:38:55 -0500 Floyd May <Fmay@okcareertech.org> wrote:
How can I use a set object within a page template?
When I attempt to create a set (e.g. tal:define="myset python:set(some_list)"), zope complains that the name 'set' is not defined.
Thanks!
fm _______________________________________________ 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 )
--On 26. September 2005 13:52:16 -0500 Floyd May <Fmay@okcareertech.org> wrote:
Is there no way to allow sets to be used within templates/scripts?
As I said: No, by default. Look at lib/python/Products/PythonScripts/README.txt. -aj
Andreas Jung wrote:
Is there no way to allow sets to be used within templates/scripts?
As I said: No, by default. Look at lib/python/Products/PythonScripts/README.txt.
Andreas means "yes", but you need to do some work. See lib/python/Products/PythonScripts/standard for examples ;-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Andreas Jung -
Chris Withers -
Floyd May