def __init__(self, moduleinst, apidefs = None, allowdiscover = True, rejectunknown = True): RoutineContainer.__init__(self, scheduler=moduleinst.scheduler, daemon=False) self.handler = EventHandler(self.scheduler) self.servicename = moduleinst.getServiceName() self.apidefs = apidefs self.registeredAPIs = {} self.discoverinfo = {} self.allowdiscover = allowdiscover self.rejectunknown = rejectunknown
def __init__(self, server): ''' Constructor ''' Module.__init__(self, server) self.proxyhandler = EventHandler(self.scheduler)