[Zope-dev] Calling DTML methods from Python
Chris Withers
chrisw@nipltd.com
Mon, 29 May 2000 16:02:15 +0100
Hi,
As part of ongoing Squishdot work I wanted to make things like
standard_html_header available to the showMessage DTML method, which is
called from a python method in Squishdot.py.
Why do I have to include self as follows?
return self.showMessage(self, REQUEST=REQUEST [stuff])
I thought self was automatically passed by python.
Why is it not in this case?
is this the same reasons why you need the following (horrible) DTML:
<dtml-call "someFunc(_,REQUEST,[stuff])">
rather than <dtml-call "someFunc([stuff])"> which would be much nicer
;-)
cheers,
Chris