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

Moved new method around.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkturnkey

    r3295 r3367  
    381381    def main(self, names, options) : 
    382382        """Intializes PyKota's database.""" 
    383         if not self.config.isAdmin : 
    384             raise PyKotaCommandLineError, "%s : %s" % (pwd.getpwuid(os.geteuid())[0], \ 
    385                                    _("You're not allowed to use this command.")) 
    386              
     383        self.adminOnly() 
     384         
    387385        if not names : 
    388386            names = ["*"]