7 Aug
2003
7 Aug
'03
8:55 p.m.
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)