From 4c7be74526bd89ed1b481f3a1ac4bb467ee0ea2c Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Thu, 28 Apr 2016 10:15:01 +0200 Subject: 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 --- ipalib/plugins/internal.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'ipalib/plugins/internal.py') 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)) -- cgit