utility unter gleichem Namen für verschiedene Int erfaces Registrierbar?

Vladislav Vorobiev <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hallo zusammen,

ich suche nach Möglichkeit Utility mit verschiedener Funktionalität
aber unter gleichem Namen bereitzustellen.

package1
   configure.zcml
   <utility
   component=".modul.ref1ValueFactory"
   name="ref1ValueFactory"
    />


package2
   configure.zcml
   <utility
   component=".modul.ref1ValueFactory"
   name="ref1ValueFactory"
    />

  File "python2.7/site-packages/zope.configuration-3.7.2-py2.7.egg/zope/configuration/config.py",
line 1507, in resolveConflicts
    raise ConfigurationConflictError(conflicts)
zope.configuration.config.ConfigurationConflictError: Conflicting
configuration actions
  For: ('utility', <InterfaceClass
zope.schema.interfaces.IVocabularyFactory>, u'ref1ValueFactory')

Es erscheint mir sinnvoll die utility von  einem Interface und nicht
von einem Namen abhängig zu machen. So wie es z.B. bei browser:page
funktioniert.

<browser:page
        name="editForm"
        for=".interfaces.ICategories"
        class=".browser.genericFormular.Categories"
        permission="five.ManageSite"
        />

Das "for" kennt utility aber nicht.

Gruß
Vlad

-- 
Best Regards
Vlad Vorobiev


_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.