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

Fernando Correa Neto fcdoth at gmail.com
Thu Jan 10 21:40:44 EST 2008


Hey

On Jan 11, 2008 12:12 AM, Dirceu Pereira Tiegs <dirceutiegs at gmail.com> wrote:
> Hey,
>
> I'm trying to use z3c.widget.tiny (a widget that uses TinyMCE to edit
> HTML) with Grok. The widget's automatically generated HTML tries to
> load TinyMCE, but there is no .js file being loaded.
>
> z3c.widget/tiny/configure.zcml contains:
>
>  <resourceLibrary name="tiny_mce">
>    <directory source="tiny_mce" include="tiny_mce.js"/>
>  </resourceLibrary>
>
> This doesn't mean that views that use this widget should load this JS
> file automatically? This isn't happening now.
>
> I've tried to add this to my app's configure.zcml:
> <include package="z3c.widget.tiny"/>
>
> But when I run my app I get these errors:
>     ZopeXMLConfigurationError: File
> "/Users/dirceu/Documents/devel/z3cwidget_test/src/z3cwidget_test/configure.zcml",
> line 4.2-4.38
>     ZopeXMLConfigurationError: File
> "/Users/dirceu/Documents/devel/buildout-eggs/z3c.widget-0.1.7-py2.4.egg/z3c/widget/tiny/configure.zcml",
> line 13.1
>     ConfigurationError: ('Unknown directive',
> u'http://namespaces.zope.org/zope', u'resourceLibrary')
>
> The complete traceback is here: http://pastebin.ca/850206.
>
> Any thoughts? If this question belongs to Zope3-Users, please tell me
> and I will ask there.

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" />

Regards,
Fernando

>
> Regards,
> --
> Dirceu Pereira Tiegs
> Weimar Consultoria
>
> Hospedagem Plone, Zope e Python
> http://www.pytown.com
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
>


More information about the Grok-dev mailing list