[Zope3-Users] Calling PageTemplate in Content object

Marco Mariani marco at sferacarta.com
Wed May 24 12:46:03 EDT 2006


On Wed, May 24, 2006 at 11:31:29AM -0500, David Johnson wrote:

> from zope.pagetemplate.pagetemplatefile import PageTemplateFile
> 
> class OrderView:
> 
>    def city(self):
>        return 'Fort Worth'
> 
> class ProcessStep(StepFactory):
> 
>     implements(IProcessStep)
> 
>     orderform = PageTemplateFile('orderform.pt')

maybe this attribute ought to be called "template" instead of "orderform" ?



More information about the Zope3-users mailing list