Changeset 3417

Show
Ignore:
Timestamp:
10/04/08 07:25:02 (14 years ago)
Author:
jerome
Message:

Code simplifications.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkbcodes

    r3413 r3417  
    4646    def main(self, names, options) : 
    4747        """Manage billing codes.""" 
    48         if options.action != "list" : 
    49             self.adminOnly() 
    50  
    5148        islist = (options.action == "list") 
    5249        isadd = (options.action == "add") 
    5350        isdelete = (options.action == "delete") 
     51 
     52        if not islist : 
     53            self.adminOnly() 
    5454 
    5555        if not names :