def unregister(self): self._do_unregister_request() Registry.unregister(self.NAME)
def unregister(): Registry.unregister()
def register(self): LOGGER.info('Registering {}'.format(self.NAME)) self.reg_id = Registry.register(self.NAME, self) if not self._do_register_request(): Registry.unregister(self.NAME)