Changeset 648 for tea4cups

Show
Ignore:
Timestamp:
06/18/05 00:03:56 (19 years ago)
Author:
jerome
Message:

3.00 is now out !
Official packages available later in the night...

Location:
tea4cups/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/NEWS

    r645 r648  
    44 
    55(c) 2005 Jerome Alet <alet@librelogiciel.com> 
     6(c) 2005 Peter Stuge <stuge-tea4cups@cdy.org> 
    67This program is free software; you can redistribute it and/or modify 
    78it under the terms of the GNU General Public License as published by 
     
    2223Tea4CUPS News : 
    2324 
     25  * 3.00 : 
     26   
     27    - Tees don't exist anymore. Only prehooks and posthooks remain. 
     28       
     29    - Prehooks can now send datas to Posthooks through pipes. 
     30     
     31    - Major rewrite of the subprocess management code, thanks to Peter Stuge. 
     32     
    2433  * 2.12alpha : 
    2534 
  • tea4cups/trunk/tea4cups

    r646 r648  
    3939from struct import unpack 
    4040 
    41 version = "2.12alpha3_unofficial" 
     41version = "3.00_unofficial" 
    4242 
    4343class TeeError(Exception): 
     
    777777        if pid == 0 : 
    778778            if self.InputFile is None : 
    779                 f=open(self.dataFile, "rb") 
     779                f = open(self.dataFile, "rb") 
    780780                os.dup2(f.fileno(), 0) 
    781781                f.close() 
     
    791791                status = os.waitpid(pid, 0)[1] 
    792792            except OSError, (err, msg) : 
    793                 if err == 4 and self.gotSigTerm : 
     793                if (err == 4) and self.gotSigTerm : 
    794794                    os.kill(pid, signal.SIGTERM) 
    795795                    killed = 1 
  • tea4cups/trunk/tea4cups.conf

    r645 r648  
    8383# since the first one may be empty depending on your printer driver. 
    8484 
    85 # Some hooks : prehooks and posthooks 
     85# Some prehooks and posthooks 
    8686# 
    8787# Prehooks are guaranteed to be launched 
     
    9595# An additionnal environment variable is made available to posthooks, 
    9696# named TEASTATUS which contains the exitcode of the real CUPS backend. 
    97 # The normal value is 0, meaning that the real CUPS backend exited 
     97# If defined, the normal value is 0, meaning that the real CUPS backend exited 
    9898# successfully. Any other value indicates that a problem occured 
    9999# in the CUPS backend which handles the transmission of the job 
     
    134134# The prehook will use the history file to filter out duplicate jobs 
    135135# checkdupes is an hypothetical command which exits -1 if the current print 
    136 # job is a duplicate (same MD5 sum already found in history) 
     136# job is a duplicate (same MD5 sum already found in history). 
     137# 
     138# NB : Beware of some software which embed the job printing time into the 
     139# PostScript job : two identical jobs may have different MD5 checksums 
     140# if they differ only by the value of the '%%CreationDate:' PostScript  
     141# comment ! 
    137142#prehook_to_filter_duplicates : /usr/local/bin/checkdupes $TEAMD5SUM /tmp/jobmd5sums 
    138143#posthook_to_filter_duplicates : echo "$TEAJOBID : $TEAMD5SUM" >>/tmp/jobmd5sums 
     144 
     145# A particular prehook can send datas to the posthook 
     146# of the same name automatically through pipes : 
     147# The file /tmp/result1 will contain the output of prehook_dialog1 
     148# prehook_dialog1 : echo "This is pipe #1" 
     149# posthook_dialog1 : cat >/tmp/result1 
     150# The file /tmp/result2 will contain the output of prehook_dialog2 
     151# prehook_dialog2 : echo "This is pipe #2" 
     152# posthook_dialog2 : cat >/tmp/result2