[Grok-dev] Re: Autoincluding ZCML for package dependencies

Tres Seaver tseaver at palladion.com
Tue Jan 22 12:23:56 EST 2008

Hash: SHA1

Martijn Faassen wrote:

> We make this explicit in the ZCML:
> <autoinclude package="." />
> This will cause all the ZCML dependencies of your package to be included 
> (all meta.zcml files first, then configure.zcml).
> If you don't want your package to do auto-inclusion of its dependencies, 
> you shouldn't use it and do manual inclusion. Note that the directive 
> only includes direct dependencies, not indirect ones.
> I don't see how an entry point is going to make this more explicit. We 
> do this in ZCML as it fits the way inclusions are done in ZCML - it's 
> triggered during ZCML loading just like normal <include> is.
> The only time auto-inclusion is going to kick in without you directly 
> asking for it is if you include a package's configure.zcml and *it* 
> contains an autoinclude directive. This is little different from 
> includes a package's configure.zcml now, though - you will get its 
> manual includes now.

Sorry, I didn't realize that you were making an explicity gesture in the
triggering package's ZCML.  I'm fine with doing it in ZCML rather than
in setup.py.

- --
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the Grok-dev mailing list