[ZPT] PageTemplateFile and other methods

Peter Bengtsson mail@peterbe.com
Tue, 10 Jul 2001 17:44:32 +0200


[not sure if this is only a ZPT question, but I start here]

my python product starts like this:

def somemethod():
    return ('a','b')

from Products.PageTemplates.PageTemplateFile import PageTemplateFile
manage_addNetSendForm = PageTemplateFile('netsendform', globals())

Then there's the file netsendform.zpt in which I try to get access to
somemethod() but can't.
I have tried <div tal:define="res here/somemethod">
and container and options and modules (security problems).

How to do?

* I basically want some Python power in the .zpt file for my product. *


Peter