try:
return lambda *params : method(self.auth, *params)
- except ProtocolError:
+ except xmlrpclib.ProtocolError:
traceback.print_exc()
global_error_count += 1
if global_error_count >= 10:
def __repr__(self):
return self.api.__repr__()
-api = PLC(auth.auth, auth.server)
class CachedPLC(PLC):
return run_or_returncached
+api = PLC(auth.auth, auth.server)
+cacheapi = CachedPLC(auth.auth, auth.server)
+
def getAPI(url):
return xmlrpclib.Server(url, verbose=False, allow_none=True)