Well, "environment variables" doesn't make a lot of sense in Zope, which does not, strictly speaking, have environment variables. Unless you dig into External Methods and use os.environ -- analogous to $ENV in Perl -- directly, the closest counterpart in Zope is the request context: <dtml-var REQUEST> -- Alexander Staubo http://www.mop.no/~alex/ "`Ford, you're turning into a penguin. Stop it.'" --Douglas Adams, _The Hitchhiker's Guide to the Galaxy_
-----Original Message----- From: Sven Kirmess [mailto:sven.kirmess@gmx.net] Sent: 29. august 1999 22:58 To: zope@zope.org Subject: [Zope] environment variables
With Apache and CGI (Perl) I can use the following Script to show all environment variables.
------------------------------------- #! /opt/bin/perl
print "Content-type: text/plain\n\n";
foreach (keys %ENV) { print $_.": ".$ENV{$_}."<br>\n"; } -------------------------------------
Can something like this be done with dtml? ...or should i use Python?
Sven
-- PGP-Key-ID: 0x881BF222
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
participants (1)
-
Alexander Staubo