Hey Vincent,<br><br>I don&#39;t know much about buildout or the inner workings of Five, so this is a bit of a stab in the dark, but it sounds to me like package inclusion order is the most likely culprit here.&nbsp; As a quick sanity check, could you try including the package directly, and see whether the problem remains the same?&nbsp; In src/myproject.policy/myproject/policy/configure.zcml, just change<br>
<br>&lt;includeDependencies package=&quot;.&quot; /&gt;<br><br>to<br><br>&lt;include package=&quot;Products.mypolicy&quot; /&gt;<br><br>If my guess is correct that package inclusion order is somehow the cause, then this shouldn&#39;t change any of the symptoms you&#39;re seeing.&nbsp; That&#39;ll at least be useful information to start debugging the problem.<br>
<br>Actually, though, do you need to explicitly include Products.mypolicy&#39;s ZCML (whether directly or indirectly through z3c.autoinclude) at all?&nbsp; Shouldn&#39;t the &lt;five:loadProducts /&gt; directive in your site.zcml load Products.mypolicy&#39;s ZCML files for you, before myproject.policy&#39;s ZCML is even loaded?<br>
<br>Cheers,<br>Ethan<br><br><div class="gmail_quote">On Thu, Nov 6, 2008 at 7:29 AM, Vincent Fretin <span dir="ltr">&lt;<a href="mailto:vincent.fretin@gmail.com">vincent.fretin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I have two eggs myproject.policy and Products.myproject.<br>
I use z3c.autoinclude in my plone buildout like this:<br>
<br>
[buildout]<br>
versions = versions<br>
eggs = [...]<br>
 &nbsp; &nbsp;z3c.autoinclude<br>
 &nbsp; &nbsp;myproject.policy<br>
develop =<br>
 &nbsp; &nbsp;src/myproject.policy<br>
 &nbsp; &nbsp;src/Products.myproject<br>
<br>
[versions]<br>
z3c.autoinclude == 0.2.2<br>
<br>
[instance]<br>
zcml =<br>
 &nbsp; z3c.autoinclude-meta<br>
 &nbsp; myproject.policy<br>
<br>
If I put Products.myproject in eggs section. All works fine.<br>
But I don&#39;t want to put it in the buildout, but in setup.py of myproject.policy.<br>
<br>
In src/myproject.policy/myproject/policy/configure.zcml, I put:<br>
&lt;includeDependencies package=&quot;.&quot; /&gt;<br>
<br>
I want myproject.policy to depend of Products.myproject,<br>
so I put in install_requires=[&#39;Products.myproject&#39;] in<br>
src/myproject.policy/setup.py<br>
<br>
I start the zope instance.<br>
The product myproject is shown and installable in Plone control panel.<br>
But doesn&#39;t appear in ZMI Control_Panel/Products,<br>
the result is that factories for the various types in myproject<br>
product are not created.<br>
<br>
I think z3c.autoinclude blocks the normal Five machinery to take place.<br>
Any idea of the problem?<br>
Maybe you can just deactivate autoinclusion of eggs in the Products<br>
namespace in the next version?<br>
<font color="#888888"><br>
--<br>
Vincent Fretin<br>
_______________________________________________<br>
Grok-dev mailing list<br>
<a href="mailto:Grok-dev@zope.org">Grok-dev@zope.org</a><br>
<a href="http://mail.zope.org/mailman/listinfo/grok-dev" target="_blank">http://mail.zope.org/mailman/listinfo/grok-dev</a><br>
</font></blockquote></div><br>