Changeset 786
- Timestamp:
- 02/10/03 11:36:33 (22 years ago)
- Location:
- pykota/trunk/pykota
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/config.py
r785 r786 15 15 # 16 16 # $Log$ 17 # Revision 1.12 2003/02/10 10:36:33 jalet 18 # Small problem wrt external requester 19 # 17 20 # Revision 1.11 2003/02/10 08:50:45 jalet 18 21 # External requester seems to be finally ok now … … 145 148 """Returns the requester backend to use for a given printer, with its arguments.""" 146 149 fullrequester = self.config.get(printer, "requester", raw=1) 147 (requester, args) = [x.strip() for x in fullrequester.split('(' )]150 (requester, args) = [x.strip() for x in fullrequester.split('(', 1)] 148 151 if args.endswith(')') : 149 152 args = args[:-1] 150 153 args = [x.strip() for x in args.split(',')] 151 154 if not args : 152 raise PyKotaConfigError, _("Invalid requester for printer %s") % printer155 raise PyKotaConfigError, _("Invalid requester %s for printer %s") % (fullrequester, printer) 153 156 return (requester, args) 154 157 -
pykota/trunk/pykota/requesters/external.py
r780 r786 15 15 # 16 16 # $Log$ 17 # Revision 1.4 2003/02/10 10:36:33 jalet 18 # Small problem wrt external requester 19 # 17 20 # Revision 1.3 2003/02/10 00:42:17 jalet 18 21 # External requester should be ok (untested) … … 49 52 try : 50 53 pagecounter = int(answer.readline().strip()) 51 except IndexError :54 except ValueError : 52 55 raise PyKotaRequesterError, _("Unable to query printer %s via EXTERNAL(%s)") % (printer, commandline) 53 56 answer.close()