[z3-five] Re: Using Zope2 page templates with Five
Lennart Regebro
regebro at nuxeo.com
Tue Jan 25 17:06:49 MET 2005
Philipp von Weitershausen wrote:
> Lennart Regebro wrote:
>
>> 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?
>
>
> Zope3-style traversal (@@, ++resource++, etc.) as well as ZPT traversal
> adapters to name one, e.g.
> * context/zope:title
> * context/@@absolute_url/url:quote
> etc.
Ah. I don't know these well enough to say that they work or not with the
Zope2 templates, so we'll assume they don't. (Pages and menus get named
@@something, and that works, but otherwise I don't know.)
> Also, as Martijn pointed out, there are certain subtle differences that
> I don't know off of the top of my head (I think wrt i18n etc.).
OK.
> Right, so where's the problem. Somebody who uses Five to integrate with
> CMF templates probably never wants to (and probably even cannot) use
> Zope 3 templates at the same time.
> So, all Five-based products that have to do with the CMF would use
> five:page, all others would use browser:page. Where's the problem?
Because then, Five/CMF products can not use schemas and widgets, since
they are in Zope3 templates. There really is no way around it. All pages
must be of the same flavour. Being able to use Zope2 PageTemplates
solved so many issues, that I'm not willing to drop it unless a new
issue turns up that makes that solution unusable. You obviously (and
quite reasonably) will not drop Zope 3 templates. I see no other
solution than a config-statement so select which is to be used for the
page-directive, if we are to continue to use the same codebase.
Then, if you want, we can have a page2 and page3 directive as well, but
I really don't see the point of it.
> Explicit is better than implicit.
Having a configuration statement is explicit.
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
More information about the z3-five
mailing list