Hi,
    I am developing small Zope3 app using Zope 3.1,
today when I installed Zope svn trunk, I got two conflict errors.

I used a 'title' which is same as that used in zwiki (addMenuItem directive).
and 'name' in addform directive.

Here is error message:

zope.configuration.config.ConfigurationConflictError: Conflicting
configuration actions
  For: ('adapter', (<InterfaceClass
zope.app.container.interfaces.IAdding>, <InterfaceClass
zope.publisher.interfaces.browser.IDefaultBrowserLayer>),
<InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>,
u'Comment')
    File "/home/baiju/myzope/lib/python/zissue/browser/configure.zcml",
line 182.2-188.8
        <addMenuItem
            class="zissue.zissuetracker.comment.Comment"
            title="Comment"
            description="Comment or Reply"
            permission="zope.ManageContent"
            view="AddComment.html"
            />
    File "/home/baiju/dls/Zope3/src/zwiki/browser/configure.zcml",
line 154.2-159.31
        <browser:addMenuItem
            class="zwiki.comment.Comment"
            title="Comment"
            description="A Comment"
            permission="zwiki.CommentWikiPage"
            view="AddComment.html" />
  For: ('view', <InterfaceClass
zope.app.container.interfaces.IAdding>, u'AddComment.html',
<InterfaceClass zope.publisher.interfaces.browser.IBrowserRequest>,
<InterfaceClass
zope.publisher.interfaces.browser.IDefaultBrowserLayer>)
    File "/home/baiju/myzope/lib/python/zissue/browser/configure.zcml",
line 173.2-180.8
        <addform
            label="Add Comment"
            name="AddComment.html"
            schema="zissue.interfaces.IComment"
            content_factory="zissue.zissuetracker.comment.Comment"
            fields="note"
            permission="zope.ManageContent"
            />
    File "/home/baiju/dls/Zope3/src/zwiki/browser/configure.zcml",
line 145.2-152.37
        <browser:addform
            label="Comment"
            name="AddComment.html"
            schema="zwiki.interfaces.IComment"
            content_factory="zwiki.comment.Comment"
            permission="zwiki.CommentWikiPage"
            fields="title source type"
            class=".wikipage.AddComment" />


----------------

When I looked Zope 3 code I did this change, that solved my problem:

Index: src/zope/configuration/config.py
===================================================================
--- src/zope/configuration/config.py    (revision 39941)
+++ src/zope/configuration/config.py    (working copy)
@@ -1507,7 +1507,7 @@
             )
         for includepath, i, callable, args, kw, info in dups[1:]:
             # Test whether path is a prefix of opath
-            if (includepath[:len(basepath)] != basepath # not a prefix
+            if (includepath[:len(basepath)] == basepath # not a prefix
                 or
                 (includepath == basepath)
                 ):

Without understanding the problem clearly, I discussed this with philip:
http://zope3.pov.lt/irclogs/%23zope3-dev.2005-11-06.log.html

Regards,
Baiju M

Attachment: config.py.patch
Description: Binary data

_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to