Changeset 789

Show
Ignore:
Timestamp:
02/10/03 12:47:39 (21 years ago)
Author:
jalet
Message:

Moved some code down into the requesters

Location:
pykota/trunk/pykota
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/config.py

    r786 r789  
    1515# 
    1616# $Log$ 
     17# Revision 1.13  2003/02/10 11:47:39  jalet 
     18# Moved some code down into the requesters 
     19# 
    1720# Revision 1.12  2003/02/10 10:36:33  jalet 
    1821# Small problem wrt external requester 
     
    151154        if args.endswith(')') : 
    152155            args = args[:-1] 
    153         args = [x.strip() for x in args.split(',')] 
    154156        if not args : 
    155157            raise PyKotaConfigError, _("Invalid requester %s for printer %s") % (fullrequester, printer) 
  • pykota/trunk/pykota/requesters/external.py

    r786 r789  
    1515# 
    1616# $Log$ 
     17# Revision 1.5  2003/02/10 11:47:39  jalet 
     18# Moved some code down into the requesters 
     19# 
    1720# Revision 1.4  2003/02/10 10:36:33  jalet 
    1821# Small problem wrt external requester 
     
    3942        """Sets instance vars depending on the current printer.""" 
    4043        self.printername = printername 
    41         self.commandline = arguments[0] 
     44        self.commandline = arguments.strip() 
    4245         
    4346    def getPrinterPageCounter(self, printer) : 
  • pykota/trunk/pykota/requesters/snmp.py

    r780 r789  
    1515# 
    1616# $Log$ 
     17# Revision 1.6  2003/02/10 11:47:39  jalet 
     18# Moved some code down into the requesters 
     19# 
    1720# Revision 1.5  2003/02/10 00:42:17  jalet 
    1821# External requester should be ok (untested) 
     
    4346        """Sets instance vars depending on the current printer.""" 
    4447        self.printername = printername 
    45         self.community = arguments[0] 
    46         self.oid = arguments[1] 
     48        args = [x.strip() for x in arguments.split(',')] 
     49        self.community = args[0] 
     50        self.oid = args[1] 
    4751         
    4852    def getPrinterPageCounter(self, hostname) :