[Zope] Feedback to user with PageTemplateFile()
Dieter Maurer
dieter at handshake.de
Sun Aug 15 16:24:14 EDT 2004
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.
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".
--
Dieter
More information about the Zope
mailing list