A more interesting question: shouldn't it be available by default?

It's a basic data strucure along the lines of lists and dicts, right? Or have I missed a use case for it where it may be scary to use in a Python Script? :)

-- Alexander Limi

On Mon, 26 Sep 2005 20:41:18 +0200, Andreas Jung <[EMAIL PROTECTED]> wrote:

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 <[EMAIL PROTECTED]>
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 )






--
_____________________________________________________________________

     Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_____________________________________________________________________

      Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

_______________________________________________
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 )

Reply via email to