Changeset 3162 for pykota/trunk/pykota/accounters/pjl.py
- Timestamp:
- 04/14/07 10:50:47 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/pjl.py
r3133 r3162 58 58 class Handler : 59 59 """A class for PJL print accounting.""" 60 def __init__(self, parent, printerhostname ) :60 def __init__(self, parent, printerhostname, skipinitialwait=False) : 61 61 self.parent = parent 62 62 self.printerHostname = printerhostname 63 self.skipinitialwait = skipinitialwait 63 64 try : 64 65 self.port = int(self.parent.arguments.split(":")[1].strip()) … … 181 182 while 1 : 182 183 self.retrievePJLValues() 184 if (self.printerInternalPageCounter is not None) \ 185 and self.skipinitialwait \ 186 and (os.environ.get("PYKOTAPHASE") == "BEFORE") : 187 self.parent.filter.logdebug("No need to wait for the printer to be idle, this should be the case already.") 188 return 183 189 idle_flag = 0 184 190 if self.printerStatus in ('10000', '10001', '35078', '40000') :