[Zope] Newbie type questions about the REQUEST object

Russell Hires rhires@earthlink.net
Sun, 4 Aug 2002 23:09:27 -0400


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
These are very simple questions, for my simple brain. ;-)

I've been playing with the REQUEST object, and I see that I can set a use the 
mysterious REQUEST.set as so:
<dtml-var "REQUEST.set('test2', 'test_Value')">
and put its value back out to the world like this:
this is the request value: <dtml-var test2>

My current question is how to get the value to "stick" as it were, so that I 
can come back and get it later. As it is above the value is only available 
for the current page (which, in this case, is the action part of a form from 
another dtml method). How do I use it in other pages/methods? 

I've read the Zope book about creating a guestbook, but I want to break it 
down to its simplest form so that I can understand how to keep the value once 
it's in there. For instance, I've gone through the Job Board Tutorial, and 
see that there is a relationship between the Class/Product, and the 
REQUEST.set syntax, the only difference being that the second item doesn't 
have single quotes around it. I tried to take the quotes off, but I get an 
error about that value not being available...

Thanks for helping me understand this!

Russell
- -- 
Linux -- the OS for the Renaissance Man 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9TexoAqKGrvVshJQRAjF/AKCd1Eze4HA6dZCcyOKKXluz48rqLwCgxEY7
0yQRQs0JDVDRECUq/MFwdpg=
=Ioyt
-----END PGP SIGNATURE-----