7 Sep
2004
7 Sep
'04
5:13 p.m.
Dieter Maurer wrote:
Pupeno wrote at 2004-8-13 18:47 -0300:
... manage_importForm = PageTemplateFile('www/manage_importForm', globals()) def manage_import(self, REQUEST): message="Work done" return self.manage_importForm(REQUEST)
Now, my question is, how do I get the variable message to be usable in the template www/manage_importForm ?
You pass it as argument.
Could you please give an example
Passed in arguments are available via the predefined "options" variable. Read the ZPT specification for details...
Note: usually, there is not need to pass "REQUEST" to a PageTemplate as it provides access to it via the predefined variable "request".