Exemplo n.º 1
0
 def __init__(self, bus, keep_alive, force_signal, loop):
     name = dbus.service.BusName("com.redhat.SubscriptionManager", bus)
     dbus.service.Object.__init__(self, name, "/EntitlementStatus")
     self.has_run = False
     # this will get set after first invocation
     self.rhsm_icon_cache = require(RHSM_ICON_CACHE)
     self.keep_alive = keep_alive
     self.force_signal = force_signal
     self.loop = loop
     # Read process timeout from configuration file
     self.read_rhsm_config()
     # the callback function will try to terminate main loop after timout is reached
     ga_GObject.timeout_add_seconds(self.TIMEOUT, timeout_cb, loop, self)