[z3-five] Re: Using Zope2 page templates with Five

Lennart Regebro regebro at nuxeo.com
Tue Jan 25 15:41:25 MET 2005


Philipp von Weitershausen wrote:
 > I certainly would like to have Zope 3 ZPTs in Five, as would probably
 > others.

I think that sounds reasonable, but out of interest: What are your 
specific reasons?

 >If people really have the use case of needing Zope 2 ZPTs, how
 > about the following:
 >
 > <browser:page> and all the configuration directives known from Zope 3
 > make regular Zope 3 ZPT pages, while <five:page> and corresponding
 > directives make Zope 2 ZPT pages. Or, maybe in a more intuitive manner,
 > <zope2:page>?

Nope, because the zope2 pages need to interact with the zope3 pages, and 
call widget macros and so on, so all page statements must use the same 
base. A page created with a <five:page> directive would not be able to 
use zope3 widgets, while a <browser:page> directive using Zope3 ZPTs can 
not use the design of a CMF site.

Zope2 page templates just makes CMF integration a hundred gazillion 
times easier, so if you really need Zope3 templates, we probably should 
have a configuration statement to say which type is to be used.

-- 
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the z3-five mailing list