[Zope] Parameters for external methods and page templates
Andreas Tille
tillea@rki.de
Thu, 12 Sep 2002 10:23:25 +0200 (CEST)
Hello,
I'm quiet happy with the example of using External Methods with PIL
which can be found at
http://www.zopelabs.com/cookbook/1010702887
I can perfectly call this method using
<img src="tumb?width=42&height=42">
and get an thumbnail in the size I want it to be. Remark: I had to
use a default image name (see below) because I did not found out
the correct syntax for specifying an image name.
On the other hand I would like to use this external method with pages
templates and I failed while having no clue to specify the parameters.s
The problem is the first parameter
def MakeThumbHi2(self, image="bland.gif", width, height):
^^^^
self. I really have no idea how to put this into the correct
syntax from page templates.
When reading the Zope Book I noticed that the examples are exclusively
realized using Python Scripts and these are glued in a DTML document.
Is this the only way to go here to avoid the problem of specifying
the "self" argument and arguments of type string?
Kind regards
Andreas.