Graham Dumpleton
graham.dumpleton at gmail.com
Mon Jul 14 20:09:19 EDT 2008
Read: http://www.dscpl.com.au/wiki/ModPython/Articles/IssuesWithSessionObjects You can't pickle objects which are contained in code files managed by mod_python module importer. Graham 2008/7/15 Buck Golemon <workitharder at gmail.com>: > I had to manually alter my class's __module__ attribute to get it to > unpickle successfully. > >>>> print MyClass.__module__ > _mp_6a56a751b58d143e34982c81384539ef >>>> MyClass.__module__ = "myscript" > > This solved my problem, but is there something I'm doing wrong? It doesn't > seem like I should have to do this. > > -- > Buck Golemon > AIM: bukzor > Cell: (480) 272-1153 > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python > >
|