On Mon, 2007-01-15 at 22:31 +0000, Martin Aspeli wrote:
> Michael Bernstein wrote:
> > As I experiment with Zope3 skins, I frequently have various
> > *-overrides.zcml files I am using to switch the default skin. I tried
> > today to comment out the only directive I had in one file (ie. like so:
> > <!-- include package="foo" file="overrides.zcml" /--> ), and this caused
> > an error.
> > 
> > So, it looks like Zope does not like content-free ZCML files. Bug or
> > Feature?
> > 
> > Having to move the file isn't a problem, exactly, but it is annoying.
> You should always have the <configure> .. </configure> directive; you 
> can comment out what's in-between.

Ah, OK. Thanks!

I've seen plenty of examples of bare <include> directives (and they
obviously work). Aside from the issue I had, is this not considered a
good practice?

- Michael R. Bernstein

Zope3-users mailing list

Reply via email to