Changeset 576 for tea4cups/trunk/tea4cups
- Timestamp:
- 03/12/05 22:29:42 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/tea4cups
r575 r576 2 2 # -*- coding: ISO-8859-15 -*- 3 3 4 # CupsOfTee: Tee for CUPS4 # Tea4CUPS : Tee for CUPS 5 5 # 6 6 # (c) 2005 Jerome Alet <alet@librelogiciel.com> … … 32 32 33 33 class TeeError(Exception): 34 """Base exception for CupsOfTeerelated stuff."""34 """Base exception for Tea4CUPS related stuff.""" 35 35 def __init__(self, message = ""): 36 36 self.message = message … … 55 55 """Initializes the CUPS backend wrapper.""" 56 56 confdir = os.environ.get("CUPS_SERVERROOT", ".") 57 self.conffile = os.path.join(confdir, " cupsoftee.conf")57 self.conffile = os.path.join(confdir, "tea4cups.conf") 58 58 if os.path.isfile(self.conffile) : 59 59 self.config = ConfigParser.ConfigParser() … … 194 194 if fullname.startswith('"') and fullname.endswith('"') : 195 195 fullname = fullname[1:-1] 196 available.append('%s cupsoftee:%s "CupsOfTee+%s" "CupsOfTeemanaged %s"' \196 available.append('%s tea4cups:%s "Tea4CUPS+%s" "Tea4CUPS managed %s"' \ 197 197 % (devicetype, device, name, fullname)) 198 198 os.remove(lockfilename) … … 209 209 210 210 # check that the DEVICE_URI environment variable's value is 211 # prefixed with " cupsoftee:" otherwise don't touch it.211 # prefixed with "tea4cups:" otherwise don't touch it. 212 212 # If this is the case, we have to remove the prefix from 213 213 # the environment before launching the real backend in cupspykota