[Zope] External Methods
Dieter Maurer
dieter@handshake.de
Wed, 5 Jan 2000 23:59:34 +0100 (CET)
Marcus Mendes writes:
> I've got the follow content : Key Error SERVER_NAME, that is,
> ....
> form= REQUEST.form
> ....
> server = form['SERVER_NAME']
The error report is unambiguous.
Your "REQUEST.form" does not contain "SERVER_NAME".
You may try "REQUEST['SERVER_NAME']".
Remember:
"REQUEST.form" contains just the form variable or
parameter definitions in the URL's query string.
"REQUEST" contains other information in
"REQUEST.cookies", "REQUEST.other" and
"REQUEST.environ", all of which are
accessible through "REQUEST[...]".
"SERVER_NAME" is a CGI variable, defined in
"REQUEST.environ".
Dieter