On 1 fév, 21:16, Massimo Di Pierro <massimo.dipie...@gmail.com> wrote:
> In web2py you cannot store instances of objects into session. While > Armin makes it tool like this is a web2py problem this is more complex > and general than that. In Python if you pickle and object that is > instance of a class defined in /path1/mymodule.py and then you > unpickle on a different installation where the class is defined in / > path2/mymodule.py you may run into problems. Because web2py does not > require installation (it is a feature) and has hot plug and play of > apps (another feature) we cannot pickle instances (the price we pay > for those features). To me it is worth it. I know for experience that storing instances in session is usually a bad application design idea.