def P_powertimer(self, request): if len(request.args): res = self.testMandatoryArguments(request, ["start","end","timertype", "repeated", "afterevent", "disabled"]) if res: return res return setPowerTimer(self.session, request) else: return getPowerTimer(self.session)