From 4361cd02422d8a6b30d67bb6869af9c67f7ec9c0 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 20 Jan 2011 15:07:43 -0500 Subject: Rename INTERNAL to NO_CLI for commands we hide from the cli. Also make i18n_messages and json_metadata NO_CLI. ticket 821 --- ipalib/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index dfc577c39..2cd3a97c3 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -656,7 +656,7 @@ class help(frontend.Local): # build help topics for c in self.Command(): - if c.INTERNAL: + if c.NO_CLI: continue topic = self._get_module_topic(c.module) @@ -715,7 +715,7 @@ class help(frontend.Local): mcl = max(len(s) for s in (self.Command)) for cname in self.Command: cmd = self.Command[cname] - if cmd.INTERNAL: + if cmd.NO_CLI: continue print '%s %s' % (to_cli(cmd.name).ljust(mcl), cmd.summary) else: @@ -886,7 +886,7 @@ class cli(backend.Executioner): return (key, argv) = (argv[0], argv[1:]) name = from_cli(key) - if name not in self.Command or self.Command[name].INTERNAL: + if name not in self.Command or self.Command[name].NO_CLI: raise CommandError(name=key) cmd = self.Command[name] if not isinstance(cmd, frontend.Local): -- cgit