Commit 99e35863 authored by blissadm_ID31@bibhelm's avatar blissadm_ID31@bibhelm Committed by Matias Guijarro

opiom: changed getDebug/setDebug to debug property

parent 7170e984
......@@ -76,12 +76,14 @@ class Opiom:
def __repr__(self):
return "Opiom : %s with program %s" % (self._cnx, self.__program)
def setDebug(self, flag):
self.__debug = flag is True
def getDebug(self):
@property
def debug(self):
return self.__debug
@debug.setter
def debug(self, flag):
self.__debug = bool(flag)
def __debugMsg(self, wr, msg):
if self.__debug:
print "%-5.5s on %s > %s" % (wr, self.name, msg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment