[z3-five] Re: Using Zope2 page templates with Five
Philipp von Weitershausen
philipp at weitershausen.de
Fri Jan 28 16:03:40 MET 2005
Martijn Faassen wrote:
>> My point :). The five: or cmf: directives would be add-ons, they could
>> even be defined in a third party product like CMFonFive.
>
> The second option to do the same thing differently doesn't go away if
> you put it in an add-on. Anyone working with Five and CMF needs this.
> You're also likely to need this if you *don't* work with CMF and want to
> use Five, as in the case of Silva, where I'd like to integrate with Zope
> 2 page templates too. I'd therefore like to have this in Five, as it
> doesn't have much to do with the CMF as far as I can see.
True. That was just a suggestion. And, one can very well argue that it
is definitely not the same thing done differently. After all, the
<browser:page> we know from Zope 3 is the one that is Zope 3 compliant,
as anyone would expect.
>> Second, the Zope 3 ZPT implementation has received improvements that
>> haven't made it back to the Zope 2 flavour (I know that for a fact,
>> just nobody remembers which changes those are).
>
> I think I can make a fairly solid case that we do not care about
> improvements nobody can remember. :)
Very true. Still, I'd be laughing if at some point we discover that Zope
2 ZPTs are a dead-end wrt this or that feature.
>> Anyway, I'm really the only one without a hard use case here. Both
>> Lennart and you have one, so I'm not too strong on this. All I was
>> trying to point out that there is a way to support both without them
>> interfering and possibly with both benefits.
>
> I'd really prefer to have one obvious way to do it instead of two
> options here. The drawbacks are fairly minimal if indeed Lennart has
> things working correctly with Zope 2 page templates.
Yup.
Really, the only thing that will *not* work with Zope 2 ZPTs are TAL
namespaces such as context/zope:title or some_url/url:quote. I consider
them an elegant way of altering TALES traversal and having things like
that in Zope 3 ZPTs is a good reason for me to keep them. But again, I
don't have a hard use case like you guys do... (but I would urge you
guys to consider a solution to support these powerful namespace thingies
in Five).
Very well then, I'll shut up and shall support Zope 2 ZPTs henceforth.
Philipp
More information about the z3-five
mailing list