Changeset 2558

Show
Ignore:
Timestamp:
10/09/05 23:33:06 (18 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)