def ComponentRegistrationRemoveSubscriber(componentRegistration, event): """Receive notification of remove event.""" component = componentRegistration.component try: dependents = IDependable(component) except TypeError: return objectpath = zapi.getPath(componentRegistration) dependents.removeDependent(objectpath)
def __call__(self): contact = IContact(self.object) dependable = IDependable(contact) dependable.removeDependent("") notify(ObjectRemovedEvent(contact, contact.__parent__, contact.__name__))
def __call__(self): contact = IContact(self.object) dependable = IDependable(contact) dependable.removeDependent("") notify( ObjectRemovedEvent(contact, contact.__parent__, contact.__name__))