On Tue, Aug 04, 2009 at 07:22:36PM +0200, Andreas Jung wrote:
> Hi there,
> I'm really puzzled about the following ZCML configuration conflict
> where I am trying to override a browser:page for defined in
> dateable.chronos.browser.events.EventListingView.upcomingEvents
> with slightly customized implementation within my own idg.theme package.
> Both ZCML configuration are of course identical except the the 'class'
> is different.
> Anything I am missing?

The ingenious model of ZCML overrides.

You have a tree of ZCML files that include other files:


Parent nodes in this tree can override any directives in descendent

<includeOverrides> doesn't create a child node; it inserts the
directives directly into the current node.  This means it overrides
stuff by piggy-backing on the more general "parent nodes override
children" mechanism.

This means (counterintuitively) that even includeOverrides cannot override
anything in parent or sibling nodes.

What you need to do is move your overrides up in the include tree.

Marius Gedminas
EMACS is a good OS.  The only thing it lacks is a decent text-editor.

Attachment: signature.asc
Description: Digital signature

Zope3-users mailing list

Reply via email to