Changeset 900 for pykota/trunk/pykota/tool.py
- Timestamp:
- 04/10/03 23:47:20 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r873 r900 21 21 # 22 22 # $Log$ 23 # Revision 1.30 2003/04/10 21:47:20 jalet 24 # Job history added. Upgrade script neutralized for now ! 25 # 23 26 # Revision 1.29 2003/03/29 13:45:27 jalet 24 27 # GPL paragraphs were incorrectly (from memory) copied into the sources. … … 276 279 def checkUserPQuota(self, username, printername) : 277 280 """Checks the user quota on a printer and deny or accept the job.""" 278 quota = self.storage.getUserPQuota(username, printername) 281 printerid = self.storage.getPrinterId(printername) 282 userid = self.storage.getUserId(username) 283 quota = self.storage.getUserPQuota(userid, printerid) 279 284 if quota is None : 280 285 # Unknown user or printer or combination … … 304 309 else : 305 310 datelimit = now + self.config.getGraceDelay(printername) 306 self.storage.set DateLimit(username, printername, datelimit)311 self.storage.setUserDateLimit(userid, printerid, datelimit) 307 312 if now < datelimit : 308 313 action = "WARN"