def setUp(self): """Set up the security module.""" self.security_module = SecurityService() self.security_interface = SecurityInterface(self.security_module) # Connect to the properties changed signal. self.callback = PropertiesChangedCallback() self.security_interface.PropertiesChanged.connect(self.callback)
def publish(self): """Publish the module.""" TaskContainer.set_namespace(SECURITY.namespace) DBus.publish_object(SECURITY.object_path, SecurityInterface(self)) DBus.register_service(SECURITY.service_name)
def publish(self): """Publish the module.""" DBus.publish_object(SECURITY.object_path, SecurityInterface(self)) DBus.register_service(SECURITY.service_name)