You are storing a function (or an object containing functions) in session.

On Tuesday, 16 July 2013 21:44:46 UTC-5, Joe Magaro wrote:
>
> Hi, Lately when I'm in the admin section, when I perform an action such as 
> installing a new app, or deleting a view I keep getting the error below. Im 
> not sure what changed to affect this, please help!
>
> raceback (most recent call last):
>   File "/home/www-data/web2py/gluon/main.py", line 606, in wsgibase
>     session._try_store_in_cookie_or_file(request, response)
>   File "/home/www-data/web2py/gluon/globals.py", line 757, in 
> _try_store_in_cookie_or_file
>     self._try_store_in_file(request, response)
>   File "/home/www-data/web2py/gluon/globals.py", line 763, in 
> _try_store_in_file
>     if not response.session_id or self._forget or self._unchanged():
>   File "/home/www-data/web2py/gluon/globals.py", line 719, in _unchanged
>     session_pickled = cPickle.dumps(dict(self))
>   File "/usr/lib/python2.7/copy_reg.py", line 70, in _reduce_ex
>     raise TypeError, "can't pickle %s objects" % base.__name__
> TypeError: can't pickle function objects
>
> Error snapshot [image: 
> help]<https://www.mywebsonic.com/admin/default/ticket/admin/65.94.90.186.2013-07-17.06-41-06.14386b00-ff0d-47ad-bf32-de51a08fda61#>
>
> <type 'exceptions.TypeError'>(can't pickle function objects)
>

-- 

--- 
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