[Grok-dev] z3c.widget.tiny, resourceLibrary and automatic load of resources

Dirceu Pereira Tiegs dirceutiegs at gmail.com
Mon Jan 14 13:53:52 EST 2008


On Jan 11, 2008 12:40 AM, Fernando Correa Neto <fcdoth at gmail.com> wrote:
> You should probably try to include the meta.zcml or whatever zcml that
> is doing the registration in that namespace e.g:
> <include package="zc.resourcelibrary" file="meta.zcml" />

Thanks for the info. Here is my final configure.zcml:

<configure xmlns="http://namespaces.zope.org/zope"
 <include package="zope.app.component" file="meta.zcml" />
 <include package="zope.app.pagetemplate" file="meta.zcml" />
 <include package="zc.resourcelibrary" file="meta.zcml" />
 <include package="zc.resourcelibrary" />
 <include package="z3c.widget.tiny" />
 <include package="grok" />
 <grok:grok package="." />

Why all these packages?
- zope.app.component.meta.zcml = Necessary for "utility" and "class"
ZCML directives, used in zc.resourcelibrary;

- zope.app.pagetemplate.meta.zcml = Necessary for "expressiontype"
ZCML directive, used in zc.resourcelibrary;

- zc.resourcelibrary's meta.zcml and configure.zcml = Necessary for
"resourceLibrary" ZCML directive and "resource_library" TALES

- z3c.widget.tiny: the widget. :-)

Is there a better way to do this?

Dirceu Pereira Tiegs
Weimar Consultoria

Hospedagem Plone, Zope e Python

More information about the Grok-dev mailing list