Changeset 3396
- Timestamp:
- 07/10/08 23:21:48 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/pcl345.py
r3390 r3396 466 466 self.logdebug("NbMediaTypes : \t\t\t%i" % len(self.mediatypesvalues)) 467 467 self.logdebug("MediaSizes : \t\t\t%s" % self.mediasizesvalues) 468 self.logdebug("NbMediaSizes : \t\t\t%i" % len(self.mediasizesvalues)) 468 nbmediasizes = len(self.mediasizesvalues) 469 self.logdebug("NbMediaSizes : \t\t\t%i" % nbmediasizes) 469 470 self.logdebug("MediaSources : \t\t\t%s" % self.mediasourcesvalues) 470 471 nbmediasourcesdefault = len([m for m in self.mediasourcesvalues if m == 'Default']) … … 477 478 self.logdebug("StartGfx : \t\t\t%s" % len(self.startgfx)) 478 479 self.logdebug("EndGfx : \t\t\t%s" % len(self.endgfx)) 480 nbbacksides = len(self.backsides) 479 481 self.logdebug("BackSides : \t\t\t%s" % self.backsides) 480 self.logdebug("NbBackSides : \t\t\t%i" % len(self.backsides))482 self.logdebug("NbBackSides : \t\t\t%i" % nbbacksides) 481 483 self.logdebug("IsImageRunner : \t\t\t%s" % self.isimagerunner) 482 484 … … 489 491 elif len(self.startgfx) == len(self.endgfx) == 0 : 490 492 if self.resets % 2 : 491 if nborientations == self.pagecount + 1 : 493 if (not self.pagecount) and (nborientations < nbbacksides) : 494 self.logdebug("Adjusting PageCount because of backsides : %i" % nbbacksides) 495 self.pagecount = nbbacksides 496 elif nborientations == self.pagecount + 1 : 492 497 self.logdebug("Adjusting PageCount : +1") 493 498 self.pagecount += 1 … … 503 508 self.pagecount -= 1 504 509 505 self.pagecount = self.pagecount or nbmediasourcesdefault or nb orientations510 self.pagecount = self.pagecount or nbmediasourcesdefault or nbmediasizes 506 511 507 512 if not self.pagecount :