Show
Ignore:
Timestamp:
05/03/08 18:58:06 (16 years ago)
Author:
jerome
Message:

Moved new method around.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkbcodes

    r3362 r3367  
    4646    def main(self, names, options) : 
    4747        """Manage billing codes.""" 
    48         if (not self.config.isAdmin) and (options.action != "list") : 
    49             raise PyKotaCommandLineError, "%s : %s" % (pwd.getpwuid(os.geteuid())[0], _("You're not allowed to use this command.")) 
     48        if options.action != "list" : 
     49            self.adminOnly() 
    5050            
    5151        islist = (options.action == "list")