[Zope-dev] Calling DTML methods from Python
Martijn Pieters
mj@antraciet.nl
Wed, 24 Nov 1999 11:43:49 +0100
At 12:32 PM 11/24/99 , Itamar Shtull-Trauring wrote:
>I want to run manage_tabs from a PythonMethod.
>So I do
>
> request = self.manage_tabs(_.None, _)
>
>but now manage_tabs doesn't know who filtered_manage_tabs is. So how do I
>call a dtml method so that it knows where it is and works correctly?
Quick guess (untested):
request = self.manage_tabs(self, _)
The first parameter is the client object, a DTML Method's 'self'.
--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------