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


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to