[Zope] Transient Object Container

rieh25 robertoedwins at gmail.com
Thu Nov 16 16:55:08 EST 2006


Thanks!


Maciej Wisniowski wrote:
> 
>> Well, I hope this is the right place to post this question...
>> 
>> I'm trying to learn how to use the Transient Object Container to use it
>> for
>> session data managing. I searched on Google for it, and I found some
>> instructions, but it has me puzzled the one that adds objects to the TOC,
>> because the key is specified, but the object to be contained isn't.
> In general you don't have to think about
> TransientObjectContainer at all. You simply use something like:
> 
> session = container.REQUEST.SESSION
> 
> to get access to session.
> 
> session['something']='bbb'
> 
> to save something to session.
> 
> Session expiration time may be set in zope.conf. Thats all until you
> need something specific.
> 
> Take look at the link below - this is definitely worth reading:
> http://www.plope.com/Books/2_7Edition/Sessions.stx
> 
> -- 
> Maciej Wisniowski
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 
> 

-- 
View this message in context: http://www.nabble.com/Transient-Object-Container-tf2647376.html#a7389239
Sent from the Zope - General mailing list archive at Nabble.com.



More information about the Zope mailing list