Changeset 1061
- Timestamp:
- 07/04/03 11:06:32 (21 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/NEWS
r1057 r1061 22 22 PyKota NEWS : 23 23 24 - 1.12alpha1 : 25 26 - Small bug fix. 27 24 28 - 1.11 : 25 29 -
pykota/trunk/pykota/tool.py
r1048 r1061 21 21 # 22 22 # $Log$ 23 # Revision 1.43 2003/07/04 09:06:32 jalet 24 # Small bug fix wrt undefined "LimitBy" field. 25 # 23 26 # Revision 1.42 2003/06/30 12:46:15 jalet 24 27 # Extracted reporting code. … … 331 334 group = grouppquota.Group 332 335 printer = grouppquota.Printer 333 if group.LimitBy .lower() == "balance":336 if group.LimitBy and (group.LimitBy.lower() == "balance") : 334 337 # TODO : there's no warning (no account balance soft limit) 335 338 if float(group.AccountBalance) <= 0.0 : … … 389 392 # then we check the user's own quota 390 393 policy = self.config.getPrinterPolicy(printer.Name) 391 if user.LimitBy .lower() == "balance":394 if user.LimitBy and (user.LimitBy.lower() == "balance") : 392 395 if user.AccountBalance is None : 393 396 if policy == "ALLOW" : -
pykota/trunk/pykota/version.py
r1057 r1061 21 21 # 22 22 23 __version__ = "1.1 1_unofficial"23 __version__ = "1.12alpha1_unofficial" 24 24 25 25 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""