[Zope] get fssession value
Curtis Maloney
curtis@umd.com.au
Mon, 19 Jun 2000 14:27:37 +1000
On Sat, 17 Jun 2000, Richard Bartels wrote:
> Hello,
>
> I'm sure this is simple, but have not been able to come up with the correct
> way.
>
Yep, there's always a simple way.. (o8
> If I do this,
> <dtml-call "FSSession['username'].update(REQUEST.form)">
>
> and then retrieve with,
> FSSession['username']
>
> I get {'username':'something'}
>
> when of course all I want is something.
>
What you really should use is something more like:
<dtml-call "FSSession.set('username', REQUEST.form['username'])">
or, as is acceptible MOST of the time (when there is not another object of
the same name hanging about ) :
<dtml-call "FSSession.set('username', username)">
> Thanks much,
>
> Rick
>
No problems.
Have a better one,
Curtis
<dtml-var standard_work_disclaimer>