RE: [Zope] losing my zen with external methods...
-----Original Message----- From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] Sent: Wednesday, September 22, 1999 11:45 PM To: zope Subject: [Zope] losing my zen with external methods...
Hi all,
I've got an external method called minicascade:
def minicascade(self, tag_id) ....
which works fine, ie it renders HTML, if I do something like .../minicascade?tag_id=13228 but if I try this within a DTML Method (I get the same error if I use a DTML Document);
<dtml-var "minicascade(tag_id=13228)">
Try: <dtml-var "minicascade(13228)"> or maybe: <dtml-var "minicascade(this(), 13228)"> but I think the first one is right. -Michel
which works fine, ie it renders HTML, if I do something like .../minicascade?tag_id=13228 but if I try this within a DTML Method (I get the same error if I use a DTML Document);
<dtml-var "minicascade(tag_id=13228)">
Try:
<dtml-var "minicascade(13228)">
or maybe:
<dtml-var "minicascade(this(), 13228)">
but I think the first one is right.
-Michel
Sorry for the late reply, Michel, but thanks - the first one does the trick nicely. Tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
participants (2)
-
Michel Pelletier -
Tony McDonald