'provider' TALES expression are not registered for Z3 page templates

Bug #237888 reported by Godefroid Chapelle
2
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Undecided
Godefroid Chapelle

Bug Description

Even though Z2ProviderExpression (which provides 'provider' expressions ;-)
is registered in the TALES engine of Products.PageTemplates,
the 'provider' expressions are not available for the pure Z3 page templates
from zope.pagetemplate or zope.app.pagetemplate.

To fix this,

just add Products.Five.provider.zcml (attached)

and add the corresponding include in Products.Five.configure.zcml :

  <include file="provider.zcml"/>

Revision history for this message
Godefroid Chapelle (gotcha) wrote :
Revision history for this message
Godefroid Chapelle (gotcha) wrote :

I can make the work in trunk and back port to 2.10 and 2.11 once I get the 'go' from the release manager.

Revision history for this message
Andreas Jung (ajung) wrote :

2.11/trunk should be no problem.
Does the patch solve any particular major issue we're having with 2.10?
I don't see any major risk adding it to the 2.10 branch as well. Looks like
an oversight. So go ahead.

Revision history for this message
Godefroid Chapelle (gotcha) wrote : Re: [Bug 237888] Re: 'provider' TALES expression are not registered for Z3 page templates

Andreas Jung wrote:
> 2.11/trunk should be no problem.
> Does the patch solve any particular major issue we're having with 2.10?

No major issue, but allows to use z3c.form more smoothly.

> I don't see any major risk adding it to the 2.10 branch as well. Looks like
> an oversight.

That's what I thought.

> So go ahead.

I'll do.

__gotcha

Revision history for this message
Andreas Jung (ajung) wrote :

@Gotcha: did commit the change?

Changed in zope2:
assignee: nobody → gotcha
Revision history for this message
Godefroid Chapelle (gotcha) wrote :

Oops, that went out of my radar.

Ill try to make it this week !

Revision history for this message
Hanno Schlichting (hannosch) wrote :

zope.pagetemplate files aren't usable directly in Zope2. There's a number of differences, most notably the different engines and context implementations. Simple configuring one expression type in the "Zope3" engine isn't of much use - we would have to configure the entire "Zope3" engine.

Changed in zope2:
status: New → Incomplete
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope2 project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope2.

Changed in zope2:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.