zopefoundation / zope.configuration

Extensible system for supporting various kinds of configurations
https://zopeconfiguration.readthedocs.io
Other
1 stars 6 forks source link

Objects have inconsistent resolution orders #49

Closed jamadden closed 4 years ago

jamadden commented 4 years ago

Exposed with zope.interface 5.0. E.g.,

zope.interface.ro.InconsistentResolutionOrderError: InconsistentResolutionOrderError: For object <implementedBy zope.configuration.fields.GlobalInterface>.
Base ROs:
{<InterfaceClass zope.schema._bootstrapinterfaces.IFromUnicode>: [<InterfaceClass zope.schema._bootstrapinterfaces.IFromUnicode>,
                                                                  <InterfaceClass zope.interface.Interface>],
 <implementedBy zope.configuration.fields.GlobalObject>: [<implementedBy zope.configuration.fields.GlobalObject>,
                                                          <InterfaceClass zope.schema._bootstrapinterfaces.IFromUnicode>,
                                                          <implementedBy zope.schema._bootstrapfields.Field>,
                                                          <InterfaceClass zope.schema.interfaces.IField>,
                                                          <InterfaceClass zope.schema._bootstrapinterfaces.IValidatable>,
                                                          <implementedBy zope.interface.interface.Attribute>,
                                                          <InterfaceClass zope.interface.interfaces.IAttribute>,
                                                          <implementedBy zope.interface.interface.Element>,
                                                          <InterfaceClass zope.interface.interfaces.IElement>,
                                                          <implementedBy builtins.object>,
                                                          <InterfaceClass zope.interface.Interface>]}
Conflict Location:
[[<InterfaceClass zope.schema._bootstrapinterfaces.IFromUnicode>,
  <InterfaceClass zope.interface.Interface>],
 [<implementedBy zope.configuration.fields.GlobalObject>,
  <InterfaceClass zope.schema._bootstrapinterfaces.IFromUnicode>,
  <implementedBy zope.schema._bootstrapfields.Field>,
  <InterfaceClass zope.schema.interfaces.IField>,
  <InterfaceClass zope.schema._bootstrapinterfaces.IValidatable>,
  <implementedBy zope.interface.interface.Attribute>,
  <InterfaceClass zope.interface.interfaces.IAttribute>,
  <implementedBy zope.interface.interface.Element>,
  <InterfaceClass zope.interface.interfaces.IElement>,
  <implementedBy builtins.object>,
  <InterfaceClass zope.interface.Interface>],
 [<InterfaceClass zope.schema._bootstrapinterfaces.IFromUnicode>,
  <implementedBy zope.configuration.fields.GlobalObject>]]

InconsistentResolutionOrderError: For object <implementedBy zope.configuration.fields.Path>.
Base ROs:
{<InterfaceClass zope.schema._bootstrapinterfaces.IFromUnicode>: [<InterfaceClass zope.schema._bootstrapinterfaces.IFromUnicode>,
                                                                  <InterfaceClass zope.interface.Interface>],
 <implementedBy zope.schema._bootstrapfields.Text>: [<implementedBy zope.schema._bootstrapfields.Text>,
                                                     <InterfaceClass zope.schema.interfaces.IText>,
                                                     <InterfaceClass zope.schema.interfaces.IMinMaxLen>,
                                                     <InterfaceClass zope.schema.interfaces.ILen>,
                                                     <InterfaceClass zope.schema.interfaces.IIterable>,
                                                     <InterfaceClass zope.schema._bootstrapinterfaces.IFromUnicode>,
                                                     <implementedBy zope.schema._bootstrapfields.MinMaxLen>,
                                                     <implementedBy zope.schema._bootstrapfields.Field>,
                                                     <InterfaceClass zope.schema.interfaces.IField>,
                                                     <InterfaceClass zope.schema._bootstrapinterfaces.IValidatable>,
                                                     <implementedBy zope.interface.interface.Attribute>,
                                                     <InterfaceClass zope.interface.interfaces.IAttribute>,
                                                     <implementedBy zope.interface.interface.Element>,
                                                     <InterfaceClass zope.interface.interfaces.IElement>,
                                                     <implementedBy builtins.object>,
                                                     <InterfaceClass zope.interface.Interface>]}
Conflict Location:
[[<InterfaceClass zope.schema._bootstrapinterfaces.IFromUnicode>,
  <InterfaceClass zope.interface.Interface>],
 [<implementedBy zope.schema._bootstrapfields.Text>,
  <InterfaceClass zope.schema.interfaces.IText>,
  <InterfaceClass zope.schema.interfaces.IMinMaxLen>,
  <InterfaceClass zope.schema.interfaces.ILen>,
  <InterfaceClass zope.schema.interfaces.IIterable>,
  <InterfaceClass zope.schema._bootstrapinterfaces.IFromUnicode>,
  <implementedBy zope.schema._bootstrapfields.MinMaxLen>,
  <implementedBy zope.schema._bootstrapfields.Field>,
  <InterfaceClass zope.schema.interfaces.IField>,
  <InterfaceClass zope.schema._bootstrapinterfaces.IValidatable>,
  <implementedBy zope.interface.interface.Attribute>,
  <InterfaceClass zope.interface.interfaces.IAttribute>,
  <implementedBy zope.interface.interface.Element>,
  <InterfaceClass zope.interface.interfaces.IElement>,
  <implementedBy builtins.object>,
  <InterfaceClass zope.interface.Interface>],
 [<InterfaceClass zope.schema._bootstrapinterfaces.IFromUnicode>,
  <implementedBy zope.schema._bootstrapfields.Text>]]