On Fri, 2009-07-31 at 17:22 -0700, Cowmix wrote:
> My question.. it the initalizer where I set key and values I want to
> stuff in the session?  Can there be any other variable aside from
> 'count'.. Like if I change 'count' to 'Bob' I get this:

That's not sessions. That's Python.

>>> a += 1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'a' is not defined
>>> a = 1
>>> a += 1
>>> a
2

You cannot use the '+=' operators on undefined vars and attrs.

Otherwise, `session.Bob = 1` would have worked as expected.


Best regards,

-- 
Branko

eml: [email protected]
alt: [email protected]
blg: http://sudologic.blogspot.com/
img: http://picasaweb.google.com/bg.branko
twt: http://www.twitter.com/foxbunny/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to