Changeset 1140
- Timestamp:
- 10/06/03 16:21:41 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r1130 r1140 21 21 # 22 22 # $Log$ 23 # Revision 1.51 2003/10/06 14:21:41 jalet 24 # Test reversed to not retrieve group members when no messages for them. 25 # 23 26 # Revision 1.50 2003/10/02 20:23:18 jalet 24 27 # Storage caching mechanism added. … … 505 508 if mailto in [ "BOTH", "ADMIN" ] : 506 509 self.sendMessageToAdmin(adminmail, _("Print Quota"), adminmessage) 507 for user in self.storage.getGroupMembers(group):508 if mailto in [ "BOTH", "USER" ]:510 if mailto in [ "BOTH", "USER" ] : 511 for user in self.storage.getGroupMembers(group) : 509 512 self.sendMessageToUser(admin, adminmail, user, _("Print Quota Exceeded"), self.config.getHardWarn(printer.Name)) 510 513 elif action == "WARN" : … … 517 520 else : 518 521 message = self.config.getSoftWarn(printer.Name) 519 for user in self.storage.getGroupMembers(group):520 if mailto in [ "BOTH", "USER" ]:522 if mailto in [ "BOTH", "USER" ] : 523 for user in self.storage.getGroupMembers(group) : 521 524 self.sendMessageToUser(admin, adminmail, user, _("Print Quota Exceeded"), message) 522 525 return action