I am not convinced this works as you expect. This just makes a new
empty Klaas object at every call.
I will look into this.

Massimo

On Mar 9, 2:49 am, Fran <francisb...@googlemail.com> wrote:
> On Mar 9, 7:12 am, SergeyPo <ser...@zarealye.com> wrote:
>
> > session.something = Klaas()
> > #this will be stored in session and in session file you will see
> > correct pickle representation of the object (NB!)
> > However, later in  other calls this session won't be restored and
> > silently updated with new one.
>
> Place this in your model to have your class always accessible:
>
> def myapp_sessions(f):
>     session.something = Klaas()
>     return f()
> response._caller=lambda f: myapp_sessions(f)
>
> F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to