[Zope] Searching for a variable from ZPT.
Paul Winkler
pw_lists at slinkp.com
Sun Sep 19 21:35:45 EDT 2004
On Sun, Sep 19, 2004 at 10:10:15AM -0700, Jason Leach wrote:
> Is their an easy way to search for a var in REQUEST? In my ZPT I have
> a look in REQUEST.SESSION, options and REQUEST.form for a var; it can
> get passed in several ways depending on what calls the ZPT.
>
> I would like one clean way. Not three conditions in my ZPT.
You don't have to. The HTTPRequest class (or maybe one of its base
classes) automagically combines all its categories, so
request/foo should work regardless of whether it's in session, options,
form, other...
--
Paul Winkler
http://www.slinkp.com
More information about the Zope
mailing list