Changeset 2202

Show
Ignore:
Timestamp:
04/12/05 10:44:04 (19 years ago)
Author:
jerome
Message:

Now SNMP handling should correctly detect PowerSave/StandBy? mode

Location:
pykota/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/NEWS

    r2195 r2202  
    2222PyKota NEWS : 
    2323        
     24    - 1.22alpha5 : 
     25        
     26        - SNMP and PJL improvements with regard to PowerSave / StandBy. 
     27         
    2428    - 1.22alpha4 : 
    2529     
  • pykota/trunk/pykota/accounters/hardware.py

    r2200 r2202  
    154154            while 1 : 
    155155                self.retrieveSNMPValues() 
    156                 statusAsString = printerStatusValues.get(self.printerStatus) 
     156                pstatusAsString = printerStatusValues.get(self.printerStatus) 
     157                dstatusAsString = deviceStatusValues.get(self.deviceStatus) 
    157158                idle_flag = 0 
    158                 if statusAsString in ('idle',) : 
    159                     idle_flag = 1 
     159                if (pstatusAsString == 'idle') or \ 
     160                   ((pstatusAsString == 'other') and \ 
     161                    (dstatusAsString == 'running')) : 
     162                    idle_flag = 1       # Standby / Powersave is considered idle 
    160163                if idle_flag :     
    161164                    idle_num += 1 
  • pykota/trunk/pykota/version.py

    r2193 r2202  
    2222# 
    2323 
    24 __version__ = "1.22alpha4_unofficial" 
     24__version__ = "1.22alpha5_unofficial" 
    2525 
    2626__doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""