Changeset 2558 for pykota

Show
Ignore:
Timestamp:
10/09/05 23:33:06 (19 years ago)
Author:
jerome
Message:

Small fix for uninitialized variable depending on the value of the 'mailto' directive
in pykota.conf
Severity : minor

Files:
1 modified

Legend:

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

    r2547 r2558  
    617617        elif user.LimitBy == "noprint" : 
    618618            action = "DENY" 
     619            message = _("User %s is not allowed to print at this time.") % user.Name 
     620            self.printInfo(message) 
    619621            if mailto in [ "BOTH", "USER", "EXTERNAL" ] : 
    620                 message = _("User %s is not allowed to print at this time.") % user.Name 
    621622                if mailto != "EXTERNAL" : 
    622623                    self.sendMessageToUser(admin, adminmail, user, _("Printing denied."), message)