Changeset 1600 for pykota/trunk/pykota
- Timestamp:
- 07/16/04 14:22:47 (20 years ago)
- Location:
- pykota/trunk/pykota
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounter.py
r1499 r1600 22 22 # 23 23 # $Log$ 24 # Revision 1.17 2004/07/16 12:22:47 jalet 25 # LPRng support early version 26 # 24 27 # Revision 1.16 2004/05/25 09:15:15 jalet 25 28 # accounter.py : old code deleted … … 91 94 self.filter = kotafilter 92 95 self.arguments = arguments 96 self.isSoftware = 1 # by default software accounting 93 97 94 98 def getLastPageCounter(self) : -
pykota/trunk/pykota/accounters/hardware.py
r1584 r1600 22 22 # 23 23 # $Log$ 24 # Revision 1.7 2004/07/16 12:22:47 jalet 25 # LPRng support early version 26 # 24 27 # Revision 1.6 2004/07/01 19:56:42 jalet 25 28 # Better dispatching of error messages … … 54 57 """Initializes querying accounter.""" 55 58 AccounterBase.__init__(self, kotabackend, arguments) 59 self.isSoftware = 0 56 60 57 61 def getPrinterInternalPageCounter(self) : -
pykota/trunk/pykota/tool.py
r1593 r1600 22 22 # 23 23 # $Log$ 24 # Revision 1.112 2004/07/16 12:22:47 jalet 25 # LPRng support early version 26 # 24 27 # Revision 1.111 2004/07/06 18:09:42 jalet 25 28 # Reduced the set of invalid characters in names … … 931 934 signal.signal(signal.SIGTERM, self.sigterm_handler) 932 935 936 def sendBackChannelData(self, message) : 937 """Sends an informational message to CUPS via back channel stream (stderr).""" 938 self.printInfo("PyKota (PID %s) : %s" % (os.getpid(), message.strip())) 939 933 940 def openJobDataStream(self) : 934 941 """Opens the file which contains the job's datas.""" … … 1105 1112 self.printInfo(_("Printer hostname undefined, set to 'localhost'"), "warn") 1106 1113 rseen = "localhost" 1114 try : 1115 df_name = [line[8:] for line in os.environ.get("HF").split() if line.startswith("df_name=")][0] 1116 except IndexError : 1117 inputfile = None 1118 else : 1119 inputfile = os.path.join(os.environ.get("SPOOL_DIR", "."), df_name) 1107 1120 if jseen and Pseen and nseen and rseen : 1108 # job is always in stdin (None) 1109 return ("LPRNG", rseen, Pseen, nseen, jseen, None, Kseen, None, None, None) 1121 return ("LPRNG", rseen, Pseen, nseen, jseen, inputfile, Kseen, None, None, None) 1110 1122 self.printInfo(_("Printing system unknown, args=%s") % " ".join(sys.argv), "warn") 1111 1123 return (None, None, None, None, None, None, None, None, None, None) # Unknown printing system -
pykota/trunk/pykota/version.py
r1599 r1600 22 22 # 23 23 24 __version__ = "1.19alpha3 1_unofficial"24 __version__ = "1.19alpha32_unofficial" 25 25 26 26 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""