[Zope3-Users] Output the template of a view class
    Jim Fulton 
    jim at zope.com
       
    Tue Jun 21 12:41:39 EDT 2005
    
    
  
Florian Lindner wrote:
> Hello,
> sine I suspect my last email to have drowned on the list, I try to ask again.
> 
> How can I ouput the template from the associated view class?
> 
> class view:
>         def __call__(self):
>                 return template
> 
> How to do that?
Assuming that the template was defines via ViewPageTemplateFile, then:
   return self.template()
Jim
-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org
    
    
More information about the Zope3-users
mailing list