[Zope] Global Variable In PT
lists at zopyx.com
Thu Aug 23 13:55:15 EDT 2007
--On 23. August 2007 13:47:15 -0400 tonylabarbara at aol.com wrote:
> I have this code (editing out the extraneous) at the beginning of a page:
> <body bgcolor="#ffffff"
> tal:define="newRow string:yes">
> After calling some other variables (specifically rotating through a
> changing ¨item¨ (for item in items...)), I try and change newRow:
Using 'global' is basically bad-style. It is even more bad-style to modify
global variables in ZPT. Rethink your problem. If necessary move the related
code into a Python script.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070823/64f8fa03/attachment.bin
More information about the Zope