[Zope] Using ZPT with options/radio/checkboxes
Paul Winkler
pw_lists at slinkp.com
Thu Aug 7 17:55:36 EDT 2003
On Thu, Aug 07, 2003 at 04:22:01PM -0400, Ron Bickers wrote:
> If I define somevar as follows, which I commonly do:
>
> define="somevar session/somevar | nothing"
>
> Then yes, somevar will exist, but if it's 'nothing', it won't have a get
> method. That's when it will raise the exception if I use your code to check
> it.
>
> Hmmm... Should I define somevar like this instead?
>
> define="somevar session/somevar | python:{}"
maybe... sometimes... i dunno?
i think i've reached the end of my ability to generalize about
this topic :-)
-
Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's NEGA <I>N</I> + 1 MANTICORE!
(random hero from isometric.spaceninja.com)
More information about the Zope
mailing list