Show
Ignore:
Timestamp:
09/05/05 15:02:58 (19 years ago)
Author:
jerome
Message:

Allows 'hardware(pjl:port)' and 'hardware(snmp:community)'.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/accounters/snmp.py

    r2423 r2425  
    6868            self.parent = parent 
    6969            self.printerHostname = printerhostname 
    70             self.community = "public" 
     70            try : 
     71                self.community = self.parent.arguments.split(":")[1].strip() 
     72            except IndexError :     
     73                self.community = "public" 
    7174            self.port = 161 
    7275            self.printerInternalPageCounter = None