equal
deleted
inserted
replaced
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: |