I have been trying to track down and issue, and I think I may have 
discovered a bug. However, before I log it, I wanted to post here and 
ask what the expected behavior is.

I am using a pretty recent build.

The issue is that it appears trying to store a QueryDict (request.POST, 
or a copy of a QueryDict) in the session, will wipe all session data.

You can see the original thread here:

http://groups.google.com/group/django-users/browse_thread/thread/260d9b94f773655e

Basically:

request.session['form_post_data'] = request.POST.copy()
request.session['foo'] = "bar"

Then, in another request:

print request.session.keys()
prints []

(i.e. no keys)

But:

request.session['foo'] = "bar"

then in another request:

print request.session.keys()
prints ['foo']

There seems to be two potential issues:

1. Cannot store request.POST.copy() or request.POST in the session 
(should you be able to do this?)
2. Trying to place request.POST.copy() in the session wipes all session 
values.


I am relatively new to django, so I may be missing something obvious. If 
it looks like a bug, then I will put together a more complete example, 
and log it.

mike

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

Reply via email to