[Zope] Storing things in the session from ZPT

Andreas Jung lists at andreas-jung.com
Fri Feb 24 07:59:08 EST 2006

--On 24. Februar 2006 12:49:48 +0000 "Robert (Jamie) Munro" 
<jamie at textmatters.com> wrote:

> How can I put something in a session from ZPT?
> I've tried:
> <div tal:define="session/foo request/foo">
> <div tal:define="foo python:session['foo']=request['foo']">
> Do I really have to write a python method just to assign a single value?

Did you consider reading the whole SESSIONS chapter in the Zope Book  2.7 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060224/b8ce1714/attachment.bin

More information about the Zope mailing list