#16563: Error pickling request.user
--------------------------+------------------------------
 Reporter:  zero.fuxor@…  |          Owner:  nobody
     Type:  Bug           |         Status:  new
Milestone:                |      Component:  contrib.auth
  Version:  1.3           |       Severity:  Normal
 Keywords:                |   Triage Stage:  Unreviewed
Has patch:  0             |  Easy pickings:  0
    UI/UX:  0             |
--------------------------+------------------------------
 trying to pickle a request.user in trunk raises: TypeError, can't pickle
 function objects
 Looking it shows that request.user is a SimpleLazyObject and it is a
 <lambda>, so it can not be pickled.


 try:
     import cPickle as pickle
 except:
     import pickle


 def some_view(request):
     pickle.dumps(request.user) # raise type error
     ...

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16563>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to