[z3-five] Configuration error
Rocky Burt
rocky at serverzen.com
Wed Aug 23 14:35:22 CEST 2006
On Wed, 2006-23-08 at 14:25 +0200, Sébastien VINOT wrote:
> Hello,
>
> I'm trying to use Five (1.3.6) with Zope 2.9.4 and I get this error :
>
> ConfigurationError: ('Unknown directive',
> u'http://namespaces.zope.org/five', u'subscriber')
>
> My configuration file has this next line :
>
> <subscriber
> for="Products.logiTest.interfaces.sqlBackup.ISqlBackup
> zope.app.container.interfaces.IObjectAddedEvent"
> handler="Products.logiTest.events.evtSqlBackup.evtCreated" />
>
> I have to say "evtCreated" is a very simple function (just for test)
>
> def evtCreated(document, event):
> """
> Reponse a l'evenement : 'Creation d'un objet sqlBackup'.
> """
> mailhost = getToolByName(document, 'MailHost')
> msg = "Document cree"
> mto = 'sebastien.vinot at logisphere.fr'
> mfrom = 'webmaster at logiTest.com'
> msubject = 'Document cree !!!'
> mailhost.send(msg, mto, mfrom, msubject=msubject)
>
> Does that mean Fiver don't konw 'subscriber' ?
You have apparently setup configure.zcml to use a default namespace that
points to Five. Make sure you have a namespace declaration attribute on
your toplevel <configure> tag like this:
xmlns:zope="http://namespaces.zope.org/zope"
Then, where you specify <subscriber you want to instead specify
<zope:subscriber
Hope that helps.
- Rocky
--
Rocky Burt
ServerZen Software -- http://www.serverzen.com
News About The Server (blog) -- http://www.serverzen.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://codespeak.net/pipermail/z3-five/attachments/20060823/61fdab4f/attachment.pgp
More information about the z3-five
mailing list