Re: Understanding sessions

2009-03-14 Thread sotirac
Thanks Stephen. That helps a lot. On Mar 13, 4:29 pm, Stephen DeGrace wrote: > It's not putting anything into the session. The session is basically a > jazzed-up dictionary, and the get method works pretty much just like it does > with the dictionary, it will try and get the objected pointed to

Re: Understanding sessions

2009-03-13 Thread Stephen DeGrace
It's not putting anything into the session. The session is basically a jazzed-up dictionary, and the get method works pretty much just like it does with the dictionary, it will try and get the objected pointed to by the key (the first argument) but if that doesn't work, it returns the default (the

Re: Understanding sessions

2009-03-13 Thread sotirac
Looking at the django-cart open source code: cart = request.session.get('cart', None) or Cart() Does the new cart object that recently got created be put back into request.session['cart']. I was thinking of improving the code located in http://code.google.com/p/django-cart/source/browse/trunk/d