Changeset 1061 for pykota/trunk/pykota/tool.py
- Timestamp:
- 07/04/03 11:06:32 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
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" :