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/pkprinters

    r3295 r3367  
    190190    def main(self, names, options) : 
    191191        """Manage printers.""" 
    192         if (not self.config.isAdmin) and (not options["list"]) : 
    193             raise PyKotaCommandLineError, "%s : %s" % (pwd.getpwuid(os.geteuid())[0], _("You're not allowed to use this command.")) 
     192        if not options["list"] : 
     193            self.adminOnly() 
    194194             
    195195        docups = options["cups"]