Ejemplo n.º 1
0
	def __open(self, uris):
		from SCRIBES.Globals import session_bus
		proxy_object = session_bus.get_object(scribes_dbus_service, scribes_dbus_path)
		proxy_object.open_files(uris, "utf-8", "", dbus_interface=scribes_dbus_service,
				reply_handler=self.__reply_handler_cb,
				error_handler=self.__error_handler_cb)
		return False
	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
Ejemplo n.º 4
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
Ejemplo n.º 6
0
 def __open(self, uris):
     from SCRIBES.Globals import session_bus
     proxy_object = session_bus.get_object(scribes_dbus_service,
                                           scribes_dbus_path)
     proxy_object.open_files(uris,
                             "utf-8",
                             "",
                             dbus_interface=scribes_dbus_service,
                             reply_handler=self.__reply_handler_cb,
                             error_handler=self.__error_handler_cb)
     return False
Ejemplo n.º 7
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
Ejemplo n.º 8
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
Ejemplo n.º 9
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