Changeset 2627 for pykota/trunk/bin

Show
Ignore:
Timestamp:
01/19/06 16:47:25 (18 years ago)
Author:
jerome
Message:

Now pkbanner handles new print (un-)limiting modes correctly.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkbanner

    r2622 r2627  
    209209        if limitby == "balance" :   
    210210            ypos -= self.printVar(c, xcenter, ypos, _("Account balance"), self.getVar("PYKOTABALANCE"), 14, savetoner)  
    211         else : 
     211        elif limitby == "quota" : 
    212212            ypos -= self.printVar(c, xcenter, ypos, _("Soft Limit"), self.getVar("PYKOTASOFTLIMIT"), 14, savetoner)  
    213213            ypos -= self.printVar(c, xcenter, ypos, _("Hard Limit"), self.getVar("PYKOTAHARDLIMIT"), 14, savetoner)  
    214214            ypos -= self.printVar(c, xcenter, ypos, _("Date Limit"), self.getVar("PYKOTADATELIMIT"), 14, savetoner)  
     215        else : 
     216            if limitby == "noquota" : 
     217                msg = _("No Limit") 
     218            elif limitby == "nochange" :     
     219                msg = _("No Accounting") 
     220            elif limitby == "noprint" :     
     221                msg = _("Forbidden") 
     222            else :     
     223                msg = _("Unknown") 
     224            ypos -= self.printVar(c, xcenter, ypos, _("Printing Mode"), msg, 14, savetoner) 
    215225             
    216226        # URL