Changeset 3306 for pykota/trunk
- Timestamp:
- 01/30/08 13:56:28 (16 years ago)
- Location:
- pykota/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r3300 r3306 580 580 setenv("PYKOTAPGROUPS", ",".join([p.Name for p in self.storage.getParentPrinters(self.Printer)]), self.charset) 581 581 setenv("PYKOTAPRINTERDESCRIPTION", self.Printer.Description or "", self.charset) 582 setenv("PYKOTAPRINTERMAXJOBSIZE", str(self.Printer.MaxJobSize or _("Unlimited")), self.charset)582 setenv("PYKOTAPRINTERMAXJOBSIZE", ((self.Printer.MaxJobSize is None) and _("Unlimited")) or str(self.Printer.MaxJobSize), self.charset) 583 583 setenv("PYKOTAPRINTERPASSTHROUGHMODE", (self.Printer.PassThrough and _("ON")) or _("OFF"), self.charset) 584 584 setenv("PYKOTAPRICEPERPAGE", str(self.Printer.PricePerPage or 0), self.charset) -
pykota/trunk/pykota/loggers/system.py
r3275 r3306 23 23 """This module defines a class for PyKota logging through syslog.""" 24 24 25 import sys 25 26 import os 26 27 import syslog … … 47 48 syslog.LOG_DEBUG) 48 49 syslog.syslog(priority, "(PID %s) : %s" \ 49 % (os.getpid(), message.strip() ))50 % (os.getpid(), message.strip().encode(sys.stdout.encoding or "UTF-8", "replace")))