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: site.zcml zope.foo/configure.zcml zope.foo/browser.zcml zope.bar/configure.zcml ... Parent nodes in this tree can override any directives in descendent nodes. <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. HTH, Marius Gedminas -- EMACS is a good OS. The only thing it lacks is a decent text-editor.
Description: Digital signature
_______________________________________________ Zope3-users mailing list Zope3email@example.com http://mail.zope.org/mailman/listinfo/zope3-users