On Thu, May 12, 2011 at 03:39:39PM -0700, Andy wrote:
> Thanks. I did notice the load() method.
> 
> But can you tell me where is that method called?

session[key]:

SessionBase.__getitem__(key):
    return self._session[key]
http://code.djangoproject.com/browser/django/trunk/django/contrib/sessions/backends/base.py#L46

SessionBase._session is a property, with getter SessionBase._get_session():
http://code.djangoproject.com/browser/django/trunk/django/contrib/sessions/backends/base.py#L168

and in _get_session() SessionBase.load() is called.

-- 
Kirill Spitsin

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

Reply via email to