[Zope] Simple REQUEST question
Suneel Iyer
suneeli@pacsg.css.mot.com
Mon, 03 Apr 2000 15:01:58 -0500
--------------CCA6B23F7A30B9CEEC778E5B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello all,
I have the following simple code fragment:
dtml-call "REQUEST.set('test',UserExists)">
<br /> The value of test is <dtml-var test> <br />
Where 'UserExists' is a boolean value set using <dtml-let>. I want to be
sure that 'UserExists' is being copied into 'test', but <dtml-var test>
does not yield the
value of 'UserExists' (in fact, it yields nothing at all). What am I
doing wrong? Also, I have some doubt about the scope of the REQUEST
variable. For instance, if in the next line of the code fragment
a call is made to another dtml method called "myMethod", does the
REQUEST variable 'test' go out of scope in "myMethod"? Thanks for your
time.
--
Suneel Iyer Email : suneeli@pacsg.css.mot.com
Software Engineer Phone : (847) 523-7259
Advanced Technology Software Operations Fax : (847) 523-3867
Motorola Cellular Subscriber Sector Pager : 1-800-759-8352, pin 1273286
600 North U.S. Hwy 45, MS AN363 or email 1273286@skytel.com
Libertyville, IL 60048-1286
--------------CCA6B23F7A30B9CEEC778E5B
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello all,
<p>I have the following simple code fragment:
<p>dtml-call "REQUEST.set('test',UserExists)">
<br> <br /> The value of test is <dtml-var test> <br />
<p>Where 'UserExists' is a boolean value set using <dtml-let>. I want
to be sure that 'UserExists' is being copied into 'test', but <dtml-var
test> does not yield the
<br>value of 'UserExists' (in fact, it yields nothing at all). What am
I doing wrong? Also, I have some doubt about the scope of the REQUEST variable.
For instance, if in the next line of the code fragment
<br>a call is made to another dtml method called "myMethod", does the REQUEST
variable 'test' go out of scope in "myMethod"? Thanks for your time.
<pre>--
Suneel Iyer Email : suneeli@pacsg.css.mot.com
Software Engineer Phone : (847) 523-7259
Advanced Technology Software Operations Fax : (847) 523-3867
Motorola Cellular Subscriber Sector Pager : 1-800-759-8352, pin 1273286
600 North U.S. Hwy 45, MS AN363 or email 1273286@skytel.com
Libertyville, IL 60048-1286</pre>
</html>
--------------CCA6B23F7A30B9CEEC778E5B--