예제 #1
0
 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
예제 #3
0
 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
예제 #4
0
 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()
예제 #6
0
파일: Main.py 프로젝트: mystilleef/scribes
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
예제 #7
0
 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
예제 #8
0
	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