Changeset 1374
- Timestamp:
- 03/01/04 15:34:15 (21 years ago)
- Location:
- pykota/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r1372 r1374 24 24 # 25 25 # $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 # 26 30 # Revision 1.29 2004/03/01 11:23:25 jalet 27 31 # Pre and Post hooks to external commands are available in the cupspykota … … 212 216 213 217 # exports some new environment variables 218 os.putenv("PYKOTAPHASE", "BEFORE") 214 219 os.putenv("PYKOTAACTION", action) 215 220 … … 232 237 233 238 if policy == "OK" : 239 # indicate phase change 240 os.putenv("PYKOTAPHASE", "AFTER") 241 234 242 # stops accounting. 235 243 self.accounter.endJob(userpquota) -
pykota/trunk/pykota/tool.py
r1372 r1374 22 22 # 23 23 # $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 # 24 28 # Revision 1.75 2004/03/01 11:23:25 jalet 25 29 # Pre and Post hooks to external commands are available in the cupspykota … … 749 753 def prehook(self, userpquota) : 750 754 """Allows pluging of an external hook before the job gets printed.""" 751 os.putenv("PYKOTAPHASE", "BEFORE")752 755 prehook = self.config.getPreHook(userpquota.Printer.Name) 753 756 if prehook : … … 757 760 def posthook(self, userpquota) : 758 761 """Allows pluging of an external hook after the job gets printed and/or denied.""" 759 os.putenv("PYKOTAPHASE", "AFTER")760 762 posthook = self.config.getPostHook(userpquota.Printer.Name) 761 763 if posthook :