[Zope-dev] how to pass dynamic value in session

Chris McDonough chrism@zope.com
Thu, 16 Aug 2001 08:42:30 -0400


I answered this separately in private email, but the gist of it was:

<dtml-call "data.set('name', scriptName(arg1, arg2)">

... where scriptName is (perhaps) a PythonScript that returns a storable 
value.

P.Sanjay wrote:
> I want to store a dynamic value in dtml session...like..
> 
> <dtml-let data="sessionMgn.getSessionData()">
> <input name="name" width=30 value=""> 
> <dtml-call "data.set('name', nameobject)">
> </dtml-let>
> 
> now i want to pass on the value entered in textbox in session object 
> that is nameobject...how do i do that..plz let me know how to do this 
> in dtml....
> in somewhere i found that as a method session value is passed ...so let 
> me know with out python script is it possible to pass DYNAMIC VALUE to 
> session..
> help me out...
> reg
> 
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
> 


-- 
Chris McDonough                    Zope Corporation
http://www.zope.org             http://www.zope.com
"Killing hundreds of birds with thousands of stones"