Changeset 3162 for pykota/trunk/pykota/accounters/snmp.py
- Timestamp:
- 04/14/07 10:50:47 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/snmp.py
r3161 r3162 109 109 class BaseHandler : 110 110 """A class for SNMP print accounting.""" 111 def __init__(self, parent, printerhostname ) :111 def __init__(self, parent, printerhostname, skipinitialwait=False) : 112 112 self.parent = parent 113 113 self.printerHostname = printerhostname 114 self.skipinitialwait = skipinitialwait 114 115 try : 115 116 self.community = self.parent.arguments.split(":")[1].strip() … … 210 211 while 1 : 211 212 self.retrieveSNMPValues() 213 if (self.printerInternalPageCounter is not None) \ 214 and self.skipinitialwait \ 215 and (os.environ.get("PYKOTAPHASE") == "BEFORE") : 216 self.parent.filter.logdebug("No need to wait for the printer to be idle, this should be the case already.") 217 return 212 218 pstatusAsString = printerStatusValues.get(self.printerStatus) 213 219 dstatusAsString = deviceStatusValues.get(self.deviceStatus)