David Bear wrote:

I wanted to assign a list object to a tal global variable but I can't
seem to find the correct syntax. I tried:

<div tal:define="global mylist=['item1', 'item2']" tal:content="">

but it doesn't like that syntax. Googling turns up thousands of items
that deal with tal but I can't see a simple example of assigning a
list object to a variable name.

Im not a tal expert but if you just put everthing inside of ....
<div tal:define="python: mylist=[...


Your fine.

Zope maillist  -  Zope@zope.org
**   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