Ticket #384: lpr.debathena.diff
File lpr.debathena.diff, 672 bytes (added by mitchb, 15 years ago) |
---|
-
lpr.debathena
old new 8 8 # intended for should go to CUPS or LPRng and sends it off in the 9 9 # right direction 10 10 11 import cups 11 12 import errno 12 13 import hesiod 13 14 import getopt … … 155 156 if default: 156 157 return (preference, default, args) 157 158 try: 159 cupsdef = cups.Connection().getDefault() 160 if cupsdef: 161 return (preference, cupsdef, args) 162 except RuntimeError: 163 pass 164 try: 158 165 h = hesiod.Lookup(os.uname()[1], 'cluster') 159 166 for result in h.results: 160 167 (key, value) = result.split(None, 1)