[z3-five] Re: Using Zope2 page templates with Five
Martijn Faassen
faassen at infrae.com
Thu Jan 27 19:26:01 MET 2005
Lennart Regebro wrote:
> 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.)
I guess you could try to plug in Zope 3 TALES into Zope 2 page
templates.. :)
But backwards compatibility with Zope 2 (while not *breaking*
compatibility with Zope 3) is in my mind more important than supporting
Zope 3 features per se. So that would mean it's more important to me to
be able to write Zope2/Five code that can be ported to Zope 3 than to
write Zope 3 code that can be ported to Zope2/Five.
>> 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.
If they're that subtle we'd better not bother with them. :)
[snip]
> Having a configuration statement is explicit.
I'd prefer not having a global configuration for this, as then you
couldn't run mix Five code that has different assumptions. The
alternative is configuration per statement or per ZCML file, but that is
not really preferred either.
I'd rather just bite the bullet and make Zope 2 page templates work.
Zope 2 eventually will make Zope 3 page templates work anyway, and then
we're fine with Five. :)
Regards,
Martijn
More information about the z3-five
mailing list