[Zope] Storing things in the session from ZPT

Peter Bengtsson peterbe at gmail.com
Fri Feb 24 08:23:55 EST 2006


On 24 Feb 2006, at 12:49, Robert (Jamie) Munro 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']">
>
Isn't it
<div tal:define="foo python:request.SESSION.set('foo', request['foo'])">


> Do I really have to write a python method just to assign a single  
> value?
>
> Robert (Jamie) Munro
> _______________________________________________
> 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 )

--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com





More information about the Zope mailing list