Changeset 3163 for pykota/trunk/pykota/accounters/pjl.py
- Timestamp:
- 04/15/07 17:18:31 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/pjl.py
r3162 r3163 179 179 def waitIdle(self) : 180 180 """Waits for printer status being 'idle'.""" 181 idle_num = idle_flag =0181 idle_num = 0 182 182 while 1 : 183 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 return189 idle_flag = 0190 184 if self.printerStatus in ('10000', '10001', '35078', '40000') : 191 idle_flag = 1 192 if idle_flag : 185 if (self.printerInternalPageCounter is not None) \ 186 and self.skipinitialwait \ 187 and (os.environ.get("PYKOTAPHASE") == "BEFORE") : 188 self.parent.filter.logdebug("No need to wait for the printer to be idle, it is the case already.") 189 return 193 190 idle_num += 1 194 191 if idle_num >= STABILIZATIONDELAY :