Changeset 3574

Show
Ignore:
Timestamp:
07/17/13 22:43:49 (11 years ago)
Author:
jerome
Message:

Fixed an accounting problem with PCL3/4/5 and default media source.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/pcl345.py

    r3573 r3574  
    481481        self.logdebug("NbMediaSizes : \t\t\t%i" % nbmediasizes) 
    482482        self.logdebug("MediaSources : \t\t\t%s" % self.mediasourcesvalues) 
    483         nbmediasourcesdefault = len([m for m in self.mediasourcesvalues if m == 'Default']) 
     483        nbmediasourcesdefault = len([m for m in self.mediasourcesvalues if m in ('Default', 'Auto')]) 
    484484        nbmediasourcesnotdefault = len(self.mediasourcesvalues) - nbmediasourcesdefault 
    485485        self.logdebug("MediaSourcesDefault : \t\t%i" % nbmediasourcesdefault)