[Zope] mid-level architecture question -- populating forms
Dieter Maurer
dieter@handshake.de
Tue, 30 Apr 2002 21:48:15 +0200
Dennis Allison writes:
> ... dispatching from controling external method to template ...
When the External Method and the template are in the same
folder, then you can simply return the rendered template.
Zope templates accept keyword parameters.
Thus, your External Method may end in something like:
return chosen_template(self,self.REQUEST,arg1=val1,....)
for a DTML template
or
return chosen_template(arg1=val1,...)
for a Page Template.
If External Method and the template are not in the same folder,
relative links in your template may get wrong. Your options:
* redirect to the template
* use my "emulateRedirect"
<http://www.dieter.handshake.de/pyprojects/zope>
* set the base tag correctly
Dieter