On 3 Dec 2013, at 9:59 AM, Massimo Di Pierro <massimo.dipie...@gmail.com> wrote:

> Is this with 2.8.2?

This confuses me. In Storage, we say:

    __getstate__ = lambda self: None

...but the pickling logic ends up calling what __getstate__ returns (without 
checking for None), which would explain the crash below. The confusing part is 
that it's been this way for a while, right? 

FastStorage, OTOH, has:

    def __getstate__(self):
        return dict(self)



> 
> On Tuesday, 3 December 2013 05:59:11 UTC-6, lucas wrote:
> hey everyone,
> 
> thanx for the help on my prior posts, things are moving along.  i now get a 
> crash when i try to login under the application,  the traceback is:
> 
> Traceback (most recent call last):
>   File "/opt/web-apps/web2py/gluon/main.py", line 479, in wsgibase
>     session._try_store_in_cookie_or_file(request, response)
>   File "/opt/web-apps/web2py/gluon/globals.py", line 1089, in 
> _try_store_in_cookie_or_file
>     return self._try_store_in_file(request, response)
>   File "/opt/web-apps/web2py/gluon/globals.py", line 1096, in 
> _try_store_in_file
>     or self._unchanged(response)):
>   File "/opt/web-apps/web2py/gluon/globals.py", line 1041, in _unchanged
>     session_pickled = cPickle.dumps(self)
>   File "/usr/lib/python2.6/copy_reg.py", line 84, in _reduce_ex
>     dict = getstate()
> TypeError: 'NoneType' object is not callable
> none of this points to my code, so i believe it is in web2py.  or, do i have 
> to adjust something in my code to compensate for the update.  i have cleared 
> all sessions and copied the web2py.js appadmin.html and appadmin.py into my 
> applications and made the appropriate changes in apache config files as per 
> my prior two tickets.
> ok, lucas
> 
> 

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to