[Zope-Coders] Lazy items in REQUEST
Casey Duncan
c.duncan@nlada.org
Tue, 13 Nov 2001 13:05:49 -0500
On Tuesday 06 November 2001 02:57 pm, Matthew T. Kromer allegedly wrote:
> When doing an automatic traversal hook for the Session Tracking product
> in Zope 2.5; the traversal hook goes to call a Session Data Manager to
> get the current session, then stuffs this result object into
> REQUEST.SESSION.
>
> It occured to Chris and I that this is a wee bit expensive, since it
> happens on EVERY REQUEST; you'd rather defer the penalty of actually
> retrieving the session data until it is used.
>
> To that end, I extended the REQUEST object to take a fifth class of
> element, lazy items.
I like. I can think of a couple of ways this would be pretty handy...
/---------------------------------------------------\
Casey Duncan, Sr. Web Developer
National Legal Aid and Defender Association
c.duncan@nlada.org
\---------------------------------------------------/