please insert here code вторник, 2 декабря 2014 г., 17:13:55 UTC+3 пользователь Remco Boerma написал: > > What solved my issue was registering with copy_reg. > I store an instance of my own class in the session, which now brakes > without a registered reduction function. > Though the class implements __getstate__ and __setstate__ apparently that > isn't enough anymore. > For docs checkout > https://docs.python.org/2/library/pickle.html#module-pickle and > https://docs.python.org/2/library/copy_reg.html > > Hope this helps. > > > Op woensdag 19 november 2014 15:54:13 UTC+1 schreef Edwin van de Ven: >> >> >> >> Op maandag 13 oktober 2014 19:22:57 UTC+2 schreef Dmitry Ermolaev: >>> >>> I del al files in /sessions and update to 2.9.11 >>> >>> Traceback (most recent call last): >>> File "C:\web2py-m\gluon\main.py", line 435, in wsgibase >>> session.connect(request, response) >>> File "C:\web2py-m\gluon\globals.py", line 931, in connect >>> session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) >>> TypeError: 'NoneType' object is not callable >>> >>> >> I'm getting the exact same error after upgrading to 2.9.11. My sessions >> directory is also empty. Does anyone else experience similar behavior? >> >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

