[Zope] Re: Feedback to user with PageTemplateFile()
Will Smith
witisi at yahoo.com
Tue Sep 7 13:13:59 EDT 2004
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".
>
More information about the Zope
mailing list