Changeset 1629 for pykota/trunk

Show
Ignore:
Timestamp:
07/23/04 13:19:48 (20 years ago)
Author:
jalet
Message:

1.19beta is out !

Location:
pykota/trunk
Files:
11 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/lprngpykota

    r1624 r1629  
    2424# 
    2525# $Log$ 
     26# Revision 1.5  2004/07/23 11:19:48  jalet 
     27# 1.19beta is out ! 
     28# 
    2629# Revision 1.4  2004/07/22 22:41:48  jalet 
    2730# Hardware accounting for LPRng should be OK now. UNTESTED. 
     
    8285        """First pass done here.""" 
    8386        # first we have to check if previous job was correctly accounted for 
    84         if (printer.LastJob.JobAction != "DENY") and (printer.LastJob.JobSize is None) : 
     87        if printer.LastJob.Exists and not printer.LastJob.JobSize : 
    8588            # here we know that previous job wasn't accounted for correctly 
    8689            # we are sure (?) that it was hardware accounting which was used 
     
    139142            self.logdebug("Job size forced to 0 because printing was denied.") 
    140143             
    141         if self.accounter.isSoftware :     
     144        if (self.accounter.isSoftware) or (action == "DENY") :     
    142145            # update the quota for the current user on this printer  
    143146            self.logdebug("Job size : %i" % jobsize) 
     
    159162            self.posthook(userpquota) 
    160163             
    161             # here software accounting was completed. 
     164            # here accounting was completed, either software, or hardware but over quota 
    162165        else : 
    163166            printer.addJobToHistory(self.jobid, user, self.accounter.getLastPageCounter(), action, filename=self.preserveinputfile, title=self.title, copies=self.copies, options=self.options, clienthost=clienthost, jobsizebytes=self.jobSizeBytes) 
     
    177180            # in second pass, so all work is already done,  
    178181            # now we just have to exit successfully 
    179             self.printInfo(_("Software accounting already done in first pass. Exiting.")) 
    180         else :     
    181             # Now we have to check if accounting was completely finished : 
    182             # if it is, then a big problem occured because with hardware 
    183             # accounting, only the second pass can know the job's size. 
    184             if (printer.LastJob.JobSize is not None) : 
    185                 # this could only occur if configuration was modified  
    186                 # between first and second pass, and accounter changed 
    187                 # from software to hardware during this short (?) time. 
    188                 raise PyKotaToolError, _("Hardware accounting already finished ! This should be impossible, please report this problem ASAP.") 
    189                  
     182            self.printInfo(_("Software accounting already done in first pass. Ignoring.")) 
     183        elif printer.LastJob.JobAction == "DENY" : 
     184            # Hardware accounting method was used, but job 
     185            # was rejected during first pass, so nothing to do 
     186            self.printInfo(_("Hardware accounting already done in first pass. Ignoring.")) 
     187        else :     
    190188            # here if user and userpquota are both None 
    191189            # then it's a special second pass for a job 
  • pykota/trunk/man/edpykota.1

    r1605 r1629  
    22.TH EDPYKOTA "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NAME 
    4 edpykota \- manual page for edpykota 1.19alpha33_unofficial 
     4edpykota \- manual page for edpykota 1.19beta_unofficial 
    55.SH DESCRIPTION 
    6 edpykota v1.19alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
     6edpykota v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
    77A Print Quota editor for PyKota. 
    88.PP 
  • pykota/trunk/man/pkhint.1

    r1605 r1629  
    22.TH PKHINT "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NAME 
    4 pkhint \- manual page for pkhint 1.19alpha33_unofficial 
     4pkhint \- manual page for pkhint 1.19beta_unofficial 
    55.SH DESCRIPTION 
    6 pkhint v1.19alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
     6pkhint v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
    77A tool to give hints on what accounting method is best for each printer. 
    88.PP 
  • pykota/trunk/man/pkpgcounter.1

    r1622 r1629  
    1 .TH PKPGCOUNTER "1" "April 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
     1.TH PKPGCOUNTER "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    22.SH NAME 
    33pkpgcounter \- PyKota script to count pages in PostScript, PDF, PCL5 and PCL6 documents 
  • pykota/trunk/man/pkprinters.1

    r1605 r1629  
    22.TH PKPRINTERS "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NAME 
    4 pkprinters \- manual page for pkprinters 1.19alpha33_unofficial 
     4pkprinters \- manual page for pkprinters 1.19beta_unofficial 
    55.SH DESCRIPTION 
    6 pkprinters v1.19alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
     6pkprinters v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
    77A Printers Manager for PyKota. 
    88.PP 
  • pykota/trunk/man/pykosd.1

    r1605 r1629  
    22.TH PYKOSD "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NAME 
    4 pykosd \- manual page for pykosd 1.19alpha33_unofficial 
     4pykosd \- manual page for pykosd 1.19beta_unofficial 
    55.SH DESCRIPTION 
    6 pykosd v1.19alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
     6pykosd v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
    77An OSD quota monitor for PyKota. 
    88.PP 
     
    1919Prints this message then exits. 
    2020.TP 
     21\fB\-c\fR | \fB\-\-color\fR #rrggbb Sets the color to use for display as an hexadecimal 
     22triplet, for example #FF0000 is 100% red. 
     23Defaults to 100% green (#00FF00). 
     24.TP 
    2125\fB\-d\fR | \fB\-\-duration\fR d 
    2226Sets the duration of the display in seconds. 
    2327Defaults to 3 seconds. 
     28.TP 
     29\fB\-f\fR | \fB\-\-font\fR f 
     30Sets the font to use for display. 
     31Defaults to the Python OSD library's default. 
    2432.TP 
    2533\fB\-l\fR | \fB\-\-loop\fR n 
  • pykota/trunk/man/pykotme.1

    r1605 r1629  
    22.TH PYKOTME "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NAME 
    4 pykotme \- manual page for pykotme 1.19alpha33_unofficial 
     4pykotme \- manual page for pykotme 1.19beta_unofficial 
    55.SH DESCRIPTION 
    6 pykotme v1.19alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
     6pykotme v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
    77.PP 
    88Gives print quotes to users. 
  • pykota/trunk/man/repykota.1

    r1605 r1629  
    22.TH REPYKOTA "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NAME 
    4 repykota \- manual page for repykota 1.19alpha33_unofficial 
     4repykota \- manual page for repykota 1.19beta_unofficial 
    55.SH DESCRIPTION 
    6 repykota v1.19alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
     6repykota v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
    77.PP 
    88Generates print quota reports. 
  • pykota/trunk/man/warnpykota.1

    r1605 r1629  
    22.TH WARNPYKOTA "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NAME 
    4 warnpykota \- manual page for warnpykota 1.19alpha33_unofficial 
     4warnpykota \- manual page for warnpykota 1.19beta_unofficial 
    55.SH DESCRIPTION 
    6 warnpykota v1.19alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
     6warnpykota v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 
    77.PP 
    88Sends mail to users over print quota. 
  • pykota/trunk/NEWS

    r1622 r1629  
    2222PyKota NEWS : 
    2323 
     24    - 1.19beta : 
     25     
     26        - LPRng support for both software and hardware accounting seems 
     27          to be OK. 
     28           
     29        - Translation files fixed because of fuzzy matching problem.   
     30         
    2431    - 1.19alpha35 : 
    2532     
  • pykota/trunk/pykota/version.py

    r1622 r1629  
    2222# 
    2323 
    24 __version__ = "1.19alpha35_unofficial" 
     24__version__ = "1.19beta_unofficial" 
    2525 
    2626__doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""