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

Dirceu Pereira Tiegs dirceutiegs at gmail.com
Thu Jan 10 21:12:57 EST 2008


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.

Regards,
-- 
Dirceu Pereira Tiegs
Weimar Consultoria

Hospedagem Plone, Zope e Python
http://www.pytown.com


More information about the Grok-dev mailing list