<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[&#39;usr_msg&#39;]:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do some operations.<br>&nbsp;<br>#some code related to project<br><br>my program control loops with above &quot; if condition&quot;.<br>
<br>REQUEST is in same context.<br><br>so once REQUEST stores &#39;usr_msg &#39; every time when it goes to &quot;if condition &quot; , it performs that &quot;do some operations&quot;<br><br>Due to above reason i want to delete that &quot;usr_msg&quot; variable from REQUEST<br>
<br>also i cannot put restriction on &quot;usr_msg&quot; ,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">&lt;<a href="mailto:tino@wildenhain.de">tino@wildenhain.de</a>&gt;</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&#39;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>