[Zope] Python script: problem with session

Chris McDonough chrism@zope.com
12 Jun 2002 09:10:04 -0400


What kind of object does REQUEST['foo'] return?

On Wed, 2002-06-12 at 08:43, p.t. wrote:
> I did already post this with a different thread: probably the formulation 
> was to complex. Or may be there is some very basic knowledge I'm missing. 
> I'll try again.
> 
> If I assign to variable in a Python script (say context.REQUEST['foo']) a 
> value stored in SESSION (say context.SESSION['foo']), and then I change the 
> retrieved value (the one in REQUEST, not the original one), also the 
> variable in SESSION is changed. In this way I have lost my original 
> information stored in SESSION!
> 
> I've tryied to avoid this, but I can't manage to find how.
> Any suggestion?
> 
> TIA,
> 	p.t. 
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )