[Zope] delete a variable from REQUEST

indrajit926 indra indrajit926 at gmail.com
Tue Sep 30 03:53:40 EDT 2008


Hi,

thanks for ur reply.

My problem is, my code is like

if REQUEST['usr_msg']:

On Mon, Sep 29, 2008 at 1:36 PM, Tino Wildenhain <tino at wildenhain.de> wrote:

> Hi,
>
> indrajit926 indra wrote:
>
>> Hi All,
>>
>> Iam relatively new to zope.
>>
>> I want to delete a variable and it value from REQUEST.I used python pop()
>> and __delattr__() ,but getting attribute error.
>>
>
> Actually you can't. (Not without writing a product in filesystem
> and getting deep into zope). Why would you?
>
> What you could do is to update one of the requests namespace to
> give the variable a new value.
>
> Regards
> Tino
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20080930/a15e1545/attachment.html 


More information about the Zope mailing list