Hey Vincent,<br><br>I don'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. As a quick sanity check, could you try including the package directly, and see whether the problem remains the same? In src/myproject.policy/myproject/policy/configure.zcml, just change<br>
<br><includeDependencies package="." /><br><br>to<br><br><include package="Products.mypolicy" /><br><br>If my guess is correct that package inclusion order is somehow the cause, then this shouldn't change any of the symptoms you're seeing. That'll at least be useful information to start debugging the problem.<br>
<br>Actually, though, do you need to explicitly include Products.mypolicy's ZCML (whether directly or indirectly through z3c.autoinclude) at all? Shouldn't the <five:loadProducts /> directive in your site.zcml load Products.mypolicy's ZCML files for you, before myproject.policy'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"><<a href="mailto:vincent.fretin@gmail.com">vincent.fretin@gmail.com</a>></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>
z3c.autoinclude<br>
myproject.policy<br>
develop =<br>
src/myproject.policy<br>
src/Products.myproject<br>
<br>
[versions]<br>
z3c.autoinclude == 0.2.2<br>
<br>
[instance]<br>
zcml =<br>
z3c.autoinclude-meta<br>
myproject.policy<br>
<br>
If I put Products.myproject in eggs section. All works fine.<br>
But I don'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>
<includeDependencies package="." /><br>
<br>
I want myproject.policy to depend of Products.myproject,<br>
so I put in install_requires=['Products.myproject'] 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'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>