X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=monitor%2Fwrapper%2Fplc.py;h=b681d55a77de5eeb58e6c4c6599743123ea6ba98;hb=5772ce036b96297a23f834ea34ce4466ef4d522c;hp=6dc5a286dfee30692415ec0575e5da00a3d63ab9;hpb=936a0e571de292b777c3f71ab7dac11b9ec258c1;p=monitor.git diff --git a/monitor/wrapper/plc.py b/monitor/wrapper/plc.py index 6dc5a28..b681d55 100644 --- a/monitor/wrapper/plc.py +++ b/monitor/wrapper/plc.py @@ -84,7 +84,6 @@ class PLC: def __repr__(self): return self.api.__repr__() -api = PLC(auth.auth, auth.server) class CachedPLC(PLC): @@ -132,6 +131,9 @@ 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)