[Grok-dev] five.grok - what changed to break this?

Martin Aspeli optilude at gmx.net
Sat Sep 27 07:04:12 EDT 2008

sylvain at infrae.com wrote:
>   Like in Grok you don't include yourself in your meta.zcml a dependency
> to grokcore.view, here neither. five.grok include for your only usefull
> parts of grokcore.view, and redefines others.
>   You should just remove that, and have in your zcml:
>   <include package="five.grok" file="meta.zcml" />
>   <include package="five.grok" />
>   And nothing else.

I'm not sure I understand you. The example.dexterity meta.zcml has:

<configure xmlns="http://namespaces.zope.org/zope">

   <include package="plone.dexterity" file="meta.zcml" />


In plone.dexterity, we have:


     <!-- Include ZCML directive from plone.behavior -->
     <include package="plone.behavior" file="meta.zcml" />

     <!-- Depend on five.grok - includes grokcore.component & friends -->
     <include package="five.grok" file="meta.zcml" />

     <!-- Depend on plone.supermodel's grokkers -->
     <include package="plone.supermodel" file="meta.zcml" />

     <!-- Register our own grokkers -->
     <grok:grok package=".directives" />


And finally, in five.grok:


   <include package="grokcore.component" file="meta.zcml" />
   <include package="grokcore.security" file="meta.zcml" />

   <!-- Load minimal support of grokcore.view, views + templates  -->
   <include package="grokcore.view" file="meta-minimal.zcml" />
   <include package="grokcore.formlib" file="meta.zcml" />

   <!-- Include skin support as well -->
   <grok:grok package="grokcore.view.meta.skin" />

   <grok:grok package=".meta" />


Are you saying the five.grok meta.zcml is broken?

/me slaps head

No, hold on a minute; this may be because of buildout.eggtractor 
including the grokcore.view meta.zcml for me because I've got it as a 
develop egg. D'oh! I'll try to remove that and see what happens.


Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

More information about the Grok-dev mailing list