Changeset 1374 for pykota

Show
Ignore:
Timestamp:
03/01/04 15:34:15 (21 years ago)
Author:
jalet
Message:

PYKOTAPHASE wasn't set at the right time at the end of data transmission
to underlying layer (real backend)

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1372 r1374  
    2424# 
    2525# $Log$ 
     26# Revision 1.30  2004/03/01 14:34:15  jalet 
     27# PYKOTAPHASE wasn't set at the right time at the end of data transmission 
     28# to underlying layer (real backend) 
     29# 
    2630# Revision 1.29  2004/03/01 11:23:25  jalet 
    2731# Pre and Post hooks to external commands are available in the cupspykota 
     
    212216             
    213217            # exports some new environment variables 
     218            os.putenv("PYKOTAPHASE", "BEFORE") 
    214219            os.putenv("PYKOTAACTION", action) 
    215220             
     
    232237         
    233238        if policy == "OK" :         
     239            # indicate phase change 
     240            os.putenv("PYKOTAPHASE", "AFTER") 
     241             
    234242            # stops accounting.  
    235243            self.accounter.endJob(userpquota) 
  • pykota/trunk/pykota/tool.py

    r1372 r1374  
    2222# 
    2323# $Log$ 
     24# Revision 1.76  2004/03/01 14:34:15  jalet 
     25# PYKOTAPHASE wasn't set at the right time at the end of data transmission 
     26# to underlying layer (real backend) 
     27# 
    2428# Revision 1.75  2004/03/01 11:23:25  jalet 
    2529# Pre and Post hooks to external commands are available in the cupspykota 
     
    749753    def prehook(self, userpquota) : 
    750754        """Allows pluging of an external hook before the job gets printed.""" 
    751         os.putenv("PYKOTAPHASE", "BEFORE") 
    752755        prehook = self.config.getPreHook(userpquota.Printer.Name) 
    753756        if prehook : 
     
    757760    def posthook(self, userpquota) : 
    758761        """Allows pluging of an external hook after the job gets printed and/or denied.""" 
    759         os.putenv("PYKOTAPHASE", "AFTER") 
    760762        posthook = self.config.getPostHook(userpquota.Printer.Name) 
    761763        if posthook :