Bjorn Stabell wrote:

in such a way that DTMLFunc gets everything it needs, e.g., namespace,
but PlainFunc can do funky things to this namespace before-hand (like
insert a few variables into it).  In other words, I want a Python method
to wrap around a DTML method.

It is pretty simple:

class myProduct:

# The dtml object
DtmlFunc = HTMLFile('DtmlFunc', globals())

# to call it
def PlainFunc(self):
"Remember docstring"
extraParameter = 'Some string'
return self.DtmlFunc(self, self.REQUEST,
extraParameter=extraParameter)


regvards Max M


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


Reply via email to