Changeset 1140

Show
Ignore:
Timestamp:
10/06/03 16:21:41 (21 years ago)
Author:
jalet
Message:

Test reversed to not retrieve group members when no messages for them.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/tool.py

    r1130 r1140  
    2121# 
    2222# $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# 
    2326# Revision 1.50  2003/10/02 20:23:18  jalet 
    2427# Storage caching mechanism added. 
     
    505508            if mailto in [ "BOTH", "ADMIN" ] : 
    506509                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) : 
    509512                    self.sendMessageToUser(admin, adminmail, user, _("Print Quota Exceeded"), self.config.getHardWarn(printer.Name)) 
    510513        elif action == "WARN" :     
     
    517520            else :      
    518521                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) : 
    521524                    self.sendMessageToUser(admin, adminmail, user, _("Print Quota Exceeded"), message) 
    522525        return action