Changeset 712 for pykota/trunk

Show
Ignore:
Timestamp:
02/06/03 01:00:45 (22 years ago)
Author:
jalet
Message:

Now includes the printer name in email messages

Files:
1 modified

Legend:

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

    r711 r712  
    1515# 
    1616# $Log$ 
     17# Revision 1.7  2003/02/06 00:00:45  jalet 
     18# Now includes the printer name in email messages 
     19# 
    1720# Revision 1.6  2003/02/05 23:55:02  jalet 
    1821# Cleaner email messages 
     
    121124            adminmessage = "Print Quota exceeded for user %s on printer %s" % (username, self.printername) 
    122125            self.logger.log_message(adminmessage) 
    123             self.sendMessageToUser(username, "Print Quota Exceeded", "You are not allowed to print anymore because\nyour Print Quota is exceeded.") 
     126            self.sendMessageToUser(username, "Print Quota Exceeded", "You are not allowed to print anymore because\nyour Print Quota is exceeded on printer %s." % self.printername) 
    124127            self.sendMessageToAdmin("Print Quota", adminmessage) 
    125128        elif action == "WARN" :     
    126129            adminmessage = "Print Quota soft limit exceeded for user %s on printer %s" % (username, self.printername) 
    127130            self.logger.log_message(adminmessage) 
    128             self.sendMessageToUser(username, "Print Quota Exceeded", "You will soon be forbidden to print anymore because\nyour Print Quota is almost reached.") 
     131            self.sendMessageToUser(username, "Print Quota Exceeded", "You will soon be forbidden to print anymore because\nyour Print Quota is almost reached on printer %s." % self.printername) 
    129132            self.sendMessageToAdmin("Print Quota", adminmessage) 
    130133        return action