Yeah that's true but if i do what you say (smthg i tried before) i get the 
following trace: 
TypeError: iteration over non-sequence

I found the solution to my problem thx to your advice to look again to the 
cookBook.
My problem was the following lines: 

sessionObject = shelve.open('session')
shelfStore = web.session.ShelfStore(sessionObject)

In fact i do not have to create a shelf object.
shelfStore = web.session.ShelfStore("sessionObject")  is enough. (notice 
the string as a parameter to ShelfStore)

Thx


On Monday, October 14, 2013 4:40:47 AM UTC+2, Jim Gregory wrote:
>
> I think the problem is you're creating a new session every time you 
> respond to a GET or POST request. If you look at the examples in the 
> cookbook, the Session() call come before the page request functions. This 
> means the session is created only once, when the app is initialized.

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to