Changeset 1807 for pykota/trunk
- Timestamp:
- 10/12/04 11:09:04 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/warnpykota
r1806 r1807 24 24 # 25 25 # $Log$ 26 # Revision 1.34 2004/10/12 09:09:04 jalet 27 # Now warnpykota warns users limited by balance only once per launch. 28 # 26 29 # Revision 1.33 2004/10/12 08:58:53 jalet 27 30 # Now warnpykota only warns users who have already printed, to not confuse … … 237 240 self.warnGroupPQuota(grouppquota) 238 241 else : 242 alreadydone = {} 239 243 for (user, userpquota) in self.storage.getPrinterUsersAndQuotas(printer, ugnames) : 240 244 # we only want to warn users who have ever printed something … … 243 247 userpquota.PageCounter or userpquota.LifePageCounter or \ 244 248 self.storage.getUserNbJobsFromHistory(user) : 245 self.warnUserPQuota(userpquota) 249 if (user.LimitBy.lower() != 'balance') or not alreadydone.get(user.Name) : 250 self.warnUserPQuota(userpquota) 251 alreadydone[user.Name] = 1 246 252 247 253 if __name__ == "__main__" : -
pykota/trunk/NEWS
r1806 r1807 24 24 - 1.20alpha24 : 25 25 26 - Now warnpykota only warns users limited by balance once. 27 26 28 - Now warnpykota only warns users who have ever printed, 27 29 to not cause confusion to users who have just opened