Thursday, May 12, 2011

Re: Where does SessionMiddleware load the session object from the SessionStore backend?

Thank you.

On May 12, 6:54 pm, Kirill Spitsin <t...@0x746e.org.ua> wrote:
> 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/ses...
>
> SessionBase._session is a property, with getter SessionBase._get_session():http://code.djangoproject.com/browser/django/trunk/django/contrib/ses...
>
> 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate