cwvreg.py
changeset 4440 2eb6112ba4f0
parent 4323 aae19998dd93
child 4490 d45cde54d464
equal deleted inserted replaced
4439:5ab3f63b06ad 4440:2eb6112ba4f0
   341                 for obj in objects:
   341                 for obj in objects:
   342                     obj.schema = schema
   342                     obj.schema = schema
   343 
   343 
   344     def register_if_interface_found(self, obj, ifaces, **kwargs):
   344     def register_if_interface_found(self, obj, ifaces, **kwargs):
   345         """register an object but remove it if no entity class implements one of
   345         """register an object but remove it if no entity class implements one of
   346         the given interfaces
   346         the given interfaces at the end of the registration process
   347         """
   347         """
   348         self.register(obj, **kwargs)
   348         self.register(obj, **kwargs)
   349         if not isinstance(ifaces,  (tuple, list)):
   349         if not isinstance(ifaces,  (tuple, list)):
   350             self._needs_iface[obj] = (ifaces,)
   350             self._needs_iface[obj] = (ifaces,)
   351         else:
   351         else: