[ZPT] Parameter to PageTemplateFile
Dieter Maurer
dieter@handshake.de
Wed, 1 May 2002 21:56:14 +0200
Gennady Kovalev writes:
> How can i put any parameters from my python class to
> PageTemplateFile?
>
> I would like to
>
> my_manage = PageTemplateFile ('www/template',globals(),__name__='myname')
I fear this is not provided (feature request?)
> And i want test='test' parameter put to my page template and use it
> <b tal:content="here?/test"></b>
It seems that your template lives inside the class (as opposed to
a constructor form). In this case, you can put the attribute
in the class (as a workaround, as it surely has side effects).
Use a naming convention to avoid name clashes with normal Zope content...
Dieter