summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/internal.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-04-28 10:15:01 +0200
committerJan Cholasta <jcholast@redhat.com>2016-06-03 09:00:34 +0200
commit4c7be74526bd89ed1b481f3a1ac4bb467ee0ea2c (patch)
tree3db268df3cfa41bd8a3c4655967e6931428b1ba9 /ipalib/plugins/internal.py
parent6cfb9d73d9701767d8b76d7ff5bbc080a6be9386 (diff)
downloadfreeipa-4c7be74526bd89ed1b481f3a1ac4bb467ee0ea2c.tar.gz
freeipa-4c7be74526bd89ed1b481f3a1ac4bb467ee0ea2c.tar.xz
freeipa-4c7be74526bd89ed1b481f3a1ac4bb467ee0ea2c.zip
ipalib: split off client-side plugin code into ipaclient
Provide client-side overrides for command plugins which implement any of the client-side `interactive_prompt_callback`, `forward` or `output_for_cli` methods and move the methods from the original plugins to the overrides. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipalib/plugins/internal.py')
-rw-r--r--ipalib/plugins/internal.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py
index 175063ba1..99b0c04d1 100644
--- a/ipalib/plugins/internal.py
+++ b/ipalib/plugins/internal.py
@@ -22,10 +22,6 @@
"""
Plugins not accessible directly through the CLI, commands used internally
"""
-from __future__ import print_function
-
-import json
-
from ipalib import Command
from ipalib import Str
from ipalib.output import Output
@@ -137,9 +133,6 @@ class json_metadata(Command):
return retval
- def output_for_cli(self, textui, result, *args, **options):
- print(json.dumps(result, default=json_serialize))
-
@register()
class i18n_messages(Command):
@@ -864,6 +857,3 @@ class i18n_messages(Command):
)
def execute(self, **options):
return dict(texts=json_serialize(self.messages))
-
- def output_for_cli(self, textui, result, *args, **options):
- print(json.dumps(result, default=json_serialize))