def __init__ (self, logger=None): """ Creates a new instance of a PS-Client for Windows. `logger` is an object following the standard Python Logger interface.- """ PSClient.__init__ (self, logger) # # inform about the client's object creation # self.logger.info ("PS-Client for Windows created")
def __init__ (self, logger=None): """ Creates a new instance of a PS-Client for Linux. `logger` is an object following the standard Python Logger interface.- """ PSClient.__init__ (self, logger) # # UPower control object path and class for DBus # self.upower_path = '/org/freedesktop/UPower' self.upower_class = 'org.freedesktop.UPower' # # ConsoleKit control object path and class for DBus # self.ck_path = '/org/freedesktop/ConsoleKit/Manager' self.ck_class = 'org.freedesktop.ConsoleKit' # # inform about the client's object creation # self.logger.info ("PS-Client for Linux created")
def __init__ (self): PSClient.__init__ (self)