Changeset 712 for pykota/trunk
- Timestamp:
- 02/06/03 01:00:45 (22 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r711 r712 15 15 # 16 16 # $Log$ 17 # Revision 1.7 2003/02/06 00:00:45 jalet 18 # Now includes the printer name in email messages 19 # 17 20 # Revision 1.6 2003/02/05 23:55:02 jalet 18 21 # Cleaner email messages … … 121 124 adminmessage = "Print Quota exceeded for user %s on printer %s" % (username, self.printername) 122 125 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) 124 127 self.sendMessageToAdmin("Print Quota", adminmessage) 125 128 elif action == "WARN" : 126 129 adminmessage = "Print Quota soft limit exceeded for user %s on printer %s" % (username, self.printername) 127 130 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) 129 132 self.sendMessageToAdmin("Print Quota", adminmessage) 130 133 return action