Brian Brinegar wrote at 2003-2-24 16:10 -0500:
 > After some more poking around, I've simplified the problem. I have a 
 > product I created with a __call__ method:
 >    def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw):
 >        """
 >        Call the selected template in the context of myself.
 >        """
 >        print "REQUEST = "
 >        print str(REQUEST)
 > When this is called from DTML like this: <dtml-var object> REQUEST is {} 
 > when this is called directly REQUEST is the real request information, 
 > when it is called from python "object(context, REQUEST)" this works as 
 > well.

This is as it should be.

You need to define the attribute "isDocTemp=1" to tell
DTML to call an object with parameters "None,_", i.e. like
a DTML object.


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to