<div dir="ltr">Hi,<br><br>thanks for ur reply.<br><br>My problem is, my code is like<br><br>#code code code<br><br>if REQUEST['usr_msg']:<br> do some operations.<br> <br>#some code related to project<br><br>my program control loops with above " if condition".<br>
<br>REQUEST is in same context.<br><br>so once REQUEST stores 'usr_msg ' every time when it goes to "if condition " , it performs that "do some operations"<br><br>Due to above reason i want to delete that "usr_msg" variable from REQUEST<br>
<br>also i cannot put restriction on "usr_msg" ,because it comes from user input, and user can give any text to that variable.<br><br>thanks,<br>Indrajit.<br><br><div class="gmail_quote">On Mon, Sep 29, 2008 at 1:36 PM, Tino Wildenhain <span dir="ltr"><<a href="mailto:tino@wildenhain.de">tino@wildenhain.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<div class="Ih2E3d"><br>
<br>
indrajit926 indra wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All,<br>
<br>
Iam relatively new to zope.<br>
<br>
I want to delete a variable and it value from REQUEST.I used python pop() and __delattr__() ,but getting attribute error.<br>
</blockquote>
<br></div>
Actually you can't. (Not without writing a product in filesystem<br>
and getting deep into zope). Why would you?<br>
<br>
What you could do is to update one of the requests namespace to<br>
give the variable a new value.<br>
<br>
Regards<br><font color="#888888">
Tino<br>
</font></blockquote></div><br></div>