RE: [Zope] seeing every name in the current dtml namespace
-----Original Message----- From: Karl Anderson [mailto:kra@monkey.org] Sent: 06 April 2000 20:11 To: zope@zope.org Subject: [Zope] seeing every name in the current dtml namespace
Is there any way to output, or iterate over, every name in the current dtml namespace? I tried using _ as a dictionary, but failed.
Hi, What about putting <dtml-var REQUEST> in your document? That will show you the keys and values of all the form, cookie, and CGI environment objects, as well as any that you've set(). Older versions of Zope (pre-2.1.2, IIRC) allowed you to view the REQUEST object of a document/method by appending REQUEST to its URL: http://path/to/some/object/REQUEST. If you really want *everything* in the namespace (including built-in modules, etc.), you could make an external method to loop over the objects returned by the python globals() function. hth, -- Marcus
Marcus Collins wrote:
Older versions of Zope (pre-2.1.2, IIRC) allowed you to view the REQUEST object of a document/method by appending REQUEST to its URL: http://path/to/some/object/REQUEST.
I've seen this comment several times now, and have been puzzled by it before. This appending of /REQUEST to the URL works on my 2.1.4 development platform (installed from Jeff Rush's RPMs, having never seen another version of Zope on this box). What gives? Regards, Daryl Tester
participants (2)
-
Daryl Tester -
Marcus Collins