def __update_generator(self): self.__generator = None from SCRIBES.Globals import dbus_iface, session_bus services = dbus_iface.ListNames() if not (dbus_service in services): return self.__generator = session_bus.get_object(dbus_service, dbus_path) return
def __get_indexer(self): from SCRIBES.Globals import dbus_iface, session_bus, python_path services = dbus_iface.ListNames() if not (indexer_dbus_service in services): return None indexer = session_bus.get_object(indexer_dbus_service, indexer_dbus_path) self.__manager.emit("found-indexer-process") return indexer
def __save_process_exists(self): try: from dbus import DBusException from SCRIBES.Globals import dbus_iface, SCRIBES_SAVE_PROCESS_DBUS_SERVICE services = dbus_iface.ListNames() if not (SCRIBES_SAVE_PROCESS_DBUS_SERVICE in services): return False except DBusException: return False return True
def __get_process(self): from SCRIBES.Globals import dbus_iface, session_bus services = dbus_iface.ListNames() if not (DBUS_SERVICE in services): return None process = session_bus.get_object(DBUS_SERVICE, DBUS_PATH) return process
def __get_services(self): from SCRIBES.Globals import dbus_iface return dbus_iface.ListNames()
def __save_process_exists(): from SCRIBES.Globals import dbus_iface, SCRIBES_SAVE_PROCESS_DBUS_SERVICE services = dbus_iface.ListNames() if SCRIBES_SAVE_PROCESS_DBUS_SERVICE in services: return True return False
def __scribes_process_exists(self): from SCRIBES.Globals import dbus_iface, SCRIBES_DBUS_SERVICE services = dbus_iface.ListNames() if SCRIBES_DBUS_SERVICE in services: return True return False
def __get_indexer(self): from SCRIBES.Globals import dbus_iface, session_bus services = dbus_iface.ListNames() if not (indexer_dbus_service in services): return None indexer = session_bus.get_object(indexer_dbus_service, indexer_dbus_path) return indexer