X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pcucontrol%2Fmodels%2FePowerSwitch.py;h=75e552a7f705dc86980e7f193427bfcceeb11f5f;hb=55ad91bb24aa69683676678f819869abdae380f4;hp=edff5cc7f0930130a6b88f890dab79e593294ce6;hpb=c9d06f3b274ecbc092a0b3eb1f5ceb6c0f734aad;p=monitor.git diff --git a/pcucontrol/models/ePowerSwitch.py b/pcucontrol/models/ePowerSwitch.py index edff5cc..75e552a 100644 --- a/pcucontrol/models/ePowerSwitch.py +++ b/pcucontrol/models/ePowerSwitch.py @@ -1,6 +1,7 @@ from pcucontrol.reboot import * class ePowerSwitchNew(PCUControl): + supported_ports = [80] # NOTE: # The old code used Python's HTTPPasswordMgrWithDefaultRealm() # For some reason this both doesn't work and in some cases, actually @@ -50,14 +51,15 @@ class ePowerSwitchNew(PCUControl): req.add_header("Authorization", authheader) # add data to handler, f = urllib2.urlopen(req, data) - if self.transport.verbose: print f.read() + #if self.transport.verbose: print f.read() except: import traceback; traceback.print_exc() # fetch url one more time on cmd.html, econtrol.html or whatever. # pass else: - if self.transport.verbose: print f.read() + #if self.transport.verbose: print f.read() + pass return 0