Hi sd, thanks for your advice!
I did as you said, and it seems the error disappeared, and the
application is even faster. I don't have problems with thumbnails
anymore, and I really didn't understand what was going on. Anyway it's
working. I'm using session like this, is that the right way?

In app.py module (the application) I have:

if web.config.get('_session') is None:
    web.ses = web.session.Session(app,
 
web.session.ShelfStore(shelve.open('session.shelf')))

then in the other modules i use:

web.ses.myuser = 'me'
...

Is it ok?

Thanks



On Feb 5, 12:41 am, sd <[email protected]> wrote:
> as an alternative you could try the ShelfStore instead of DiskStore.
>
> when you initialize the session change from web.session.DiskStore
> to web.session.ShelfStore.
>
> this uses the shelve module instead of pickle.
>
>
>
>
>
>
>
> On Fri, Feb 4, 2011 at 9:00 PM, sd <[email protected]> wrote:
>
> > Is it possible to delete all sessions files from the session directory ?
>
> > On 2/4/11, guisf <[email protected]> wrote:
> > > There is a directory inside my application, called 'sessions'.
> > > It is the webpy default.
>
> > > On Feb 2, 9:13 pm, sd <[email protected]> wrote:
> > >> Looks like the sessions can't be loaded.
> > >> Where do you keep them ?
>
> > >> s
>
> > > --
> > > 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.

-- 
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