[Zope-dev] Object called from DTML
Brian R Brinegar
brinegar@ecn.purdue.edu
Mon, 24 Feb 2003 18:49:11 -0500 (EST)
Okay,
I have developed a product. When an instance of the product is called from
DTML like, <dtml-var object>, REQUEST is not available. If I call a python
script or a DTML Method from DTML REQUEST is available. The __call__
method is defined like this:
def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw):
if REQUEST == {}:
print "No REQUEST defined"
else:
print "REQUEST defined"
I get "No REQUEST defined" when I call this <dtml-var object> if I call
this directly it works.
What am I doing wrong? How do I make my product work when called from
DTML?
Thanks,
-Brian