Can not register multiple webservice modules if one imports the other

Bug #369888 reported by Michael Nelson on 2009-04-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

The situation I had was this: LP just registers one module "canonical.launchpad.interfaces", but since we're not meant to add new interfaces to interfaces/, I tried adding a second module registration:

   <webservice:register module="canonical.launchpad.interfaces.archivesubscriber" />

for my new(ish) interface that is not listed in interfaces/

This then resulted in error:

zope.configuration.config.ConfigurationConflictError: Conflicting configuration actions

Apparently this is because the webservice adapter generator is going through archivesubscriber and trying to generate adapters for the interfaces imported there, which have interfaces from the first module declaration.

Francis J. Lacoste (flacoste) wrote :

There is an easy workaround is to not import the interfaces themselves but only the module that define them and use module.Interface in the new module.

Changed in lazr.restful:
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers