Changeset 3367 for pykota/trunk/bin/pkbcodes
- Timestamp:
- 05/03/08 18:58:06 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pkbcodes
r3362 r3367 46 46 def main(self, names, options) : 47 47 """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() 50 50 51 51 islist = (options.action == "list")