Can not register multiple webservice modules if one imports the other
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restful |
Triaged
|
Low
|
Unassigned |
Bug Description
The situation I had was this: LP just registers one module "canonical.
<webservice:
for my new(ish) interface that is not listed in interfaces/
This then resulted in error:
zope.configurat
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.
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.