[Setup] When should I add new Products in "eggs" and "zcml"
sections of buildout ?
jeanmichel.francois at makina-corpus.com
Wed Oct 7 14:33:57 UTC 2009
Steve McMahon a écrit :
> Python packages that don't use the Zope Toolkit (aka Zope 3) don't
> need ZCML slugs. That's why MySQL-python doesn't need it.
> By the way, Plone 3.3 includes an autodiscovery mechanism. Once
> products add the right magic phrases in setup.py, they won't need zcml
> section entries.
> On Thu, Oct 1, 2009 at 5:54 AM, ida277 <ida277 at gmail.com
> <mailto:ida277 at gmail.com>> wrote:
> as far as I know this isssue is connected with the namespaces.
> In general all eggs should be registered in the zcml section,
> exept for
> those where the name also starts with "Products.", like in
> Doesn't explain MYSQL_Python though...
> Fortunately usually it's documented in the docs.
> Hope that helps,
> francoise wrote:
> > Hi all,
> > Some products are added only on the "eggs" section
> > MySQL-Python).
> > Others products need to be also added to the "zcml" section (my
> > product, and apparently theme products).
> > What is the logic for to know when I should add a product to the
> > section ? For themes only ?
> > Regards
> View this message in context:
> Sent from the Installation, Setup, Upgrades mailing list archive
> at Nabble.com.
> Setup mailing list
> Setup at lists.plone.org <mailto:Setup at lists.plone.org>
> Setup mailing list
> Setup at lists.plone.org
ZCML is for loading components. It is related to ZCA (zope component
Most of the time it is documented in the README or INSTALL.txt if you
need the zcml slug in your buildout.
For some people like me it is usefull to not autoinclude zcml because I
can choose which component I want to load.
Products Namespace is special and is autoincluded. So never add zcml for
Every collective.XXX eggs need to add zcml.
For other namespace you need to verify if it use ZCA or not (check if
their is configure.zcml inside the egg. for example
If you don't want to include this in buildout and have a policy, you can
include other eggs by using its own configure.zcml => <include
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Setup