Changeset 1600 for pykota/trunk/pykota

Show
Ignore:
Timestamp:
07/16/04 14:22:47 (20 years ago)
Author:
jalet
Message:

LPRng support early version

Location:
pykota/trunk/pykota
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/accounter.py

    r1499 r1600  
    2222# 
    2323# $Log$ 
     24# Revision 1.17  2004/07/16 12:22:47  jalet 
     25# LPRng support early version 
     26# 
    2427# Revision 1.16  2004/05/25 09:15:15  jalet 
    2528# accounter.py : old code deleted 
     
    9194        self.filter = kotafilter 
    9295        self.arguments = arguments 
     96        self.isSoftware = 1 # by default software accounting 
    9397         
    9498    def getLastPageCounter(self) :     
  • pykota/trunk/pykota/accounters/hardware.py

    r1584 r1600  
    2222# 
    2323# $Log$ 
     24# Revision 1.7  2004/07/16 12:22:47  jalet 
     25# LPRng support early version 
     26# 
    2427# Revision 1.6  2004/07/01 19:56:42  jalet 
    2528# Better dispatching of error messages 
     
    5457        """Initializes querying accounter.""" 
    5558        AccounterBase.__init__(self, kotabackend, arguments) 
     59        self.isSoftware = 0 
    5660         
    5761    def getPrinterInternalPageCounter(self) :     
  • pykota/trunk/pykota/tool.py

    r1593 r1600  
    2222# 
    2323# $Log$ 
     24# Revision 1.112  2004/07/16 12:22:47  jalet 
     25# LPRng support early version 
     26# 
    2427# Revision 1.111  2004/07/06 18:09:42  jalet 
    2528# Reduced the set of invalid characters in names 
     
    931934        signal.signal(signal.SIGTERM, self.sigterm_handler) 
    932935         
     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         
    933940    def openJobDataStream(self) :     
    934941        """Opens the file which contains the job's datas.""" 
     
    11051112                self.printInfo(_("Printer hostname undefined, set to 'localhost'"), "warn") 
    11061113                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) 
    11071120            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) 
    11101122        self.printInfo(_("Printing system unknown, args=%s") % " ".join(sys.argv), "warn") 
    11111123        return (None, None, None, None, None, None, None, None, None, None)   # Unknown printing system 
  • pykota/trunk/pykota/version.py

    r1599 r1600  
    2222# 
    2323 
    24 __version__ = "1.19alpha31_unofficial" 
     24__version__ = "1.19alpha32_unofficial" 
    2525 
    2626__doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""