On 22 January 2011 23:16, Dominik <[email protected]> wrote:
>
> Hi,
>
> I read Martins manual about grok
> http://plone.org/products/dexterity/documentation/manual/five.grok and
> wanted to try it myself. But it seems I miss something.
> First I added
>
> <grok:grok package="." />
>
> to my configure.zcml. But my viewlet in viewlet.py didn't work that way.
> After reading
> http://vincentfretin.ecreall.com/articles/using-five.grok-to-add-viewlets
> I change the configure.zcml to
>
> <grok:grok package=".viewlet" />
>
> Now the viewlet works but the files in static are no longer available.
>
> What am I doing wrong? The example at
> http://svn.zope.org/grokapps/SimpleViewletDemo/src/simpleviewletdemo/configure.zcml?rev=86566&view=auto
> is also using <grok:grok package="." />

Any errors being displayed?

Is 'viewlet' a package or a module? If a package, try to import it
from your root __init__.py to see if that triggers grokking.

Martin
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/product-developers

Reply via email to