[z3-five] Configuration error

Sébastien VINOT sebastien.vinot at logisphere.fr
Wed Aug 23 14:54:22 CEST 2006


Rocky Burt a écrit :
> 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
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> z3-five mailing list
> z3-five at codespeak.net
> http://codespeak.net/mailman/listinfo/z3-five
>   


Yes it works now. Thanks for your help.

Sebastien



More information about the z3-five mailing list