[Zope] Storing things in the session from ZPT

2006-02-24 Thread Robert (Jamie) Munro
How can I put something in a session from ZPT? I've tried: Do I really have to write a python method just to assign a single value? Robert (Jamie) Munro ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross pos

Re: [Zope] Storing things in the session from ZPT

2006-02-24 Thread Andreas Jung
--On 24. Februar 2006 12:49:48 + "Robert (Jamie) Munro" <[EMAIL PROTECTED]> wrote: How can I put something in a session from ZPT? I've tried: 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 B

Re: [Zope] Storing things in the session from ZPT

2006-02-24 Thread Peter Bengtsson
On 24 Feb 2006, at 12:49, Robert (Jamie) Munro wrote: How can I put something in a session from ZPT? I've tried: Isn't it Do I really have to write a python method just to assign a single value? Robert (Jamie) Munro ___ Zope maillist -

Re: [Zope] Storing things in the session from ZPT

2006-02-24 Thread Tino Wildenhain
Robert (Jamie) Munro schrieb: How can I put something in a session from ZPT? I've tried: Do I really have to write a python method just to assign a single value? No you can use the method for all the other work too... You should avoid application logic in your templates. You can do that b

Re: [Zope] Storing things in the session from ZPT

2006-02-24 Thread Chris Withers
On 24 Feb 2006, at 12:49, Robert (Jamie) Munro wrote: How can I put something in a session from ZPT? I've tried: Isn't it Doing this kind of logic from ZPT is evil :-( Do I really have to write a python method just to assign a single value? Yes, put all you logic in a python script.