summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/internal.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2012-12-13 11:42:06 -0500
committerMartin Kosek <mkosek@redhat.com>2013-02-21 16:26:09 +0100
commit42300eb55b1d122f9e946f37e2adc218af913a3d (patch)
treec612ac88548c0a46350da2bb7d4aa537fce335e1 /ipalib/plugins/internal.py
parent24bca144a8049cea8683afd699d2e0e158b5f164 (diff)
downloadfreeipa-42300eb55b1d122f9e946f37e2adc218af913a3d.tar.gz
freeipa-42300eb55b1d122f9e946f37e2adc218af913a3d.tar.xz
freeipa-42300eb55b1d122f9e946f37e2adc218af913a3d.zip
Rename the "messages" Output of the i18n_messages command to "texts"
This is to prevent a fatal name clash wih the new common "messages" Output. Since i18n_messages is an internal plugin, the change does not affect our public API.
Diffstat (limited to 'ipalib/plugins/internal.py')
-rw-r--r--ipalib/plugins/internal.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py
index e9fc9de40..42bece601 100644
--- a/ipalib/plugins/internal.py
+++ b/ipalib/plugins/internal.py
@@ -25,7 +25,7 @@ Plugins not accessible directly through the CLI, commands used internally
import json
-from ipalib import api, errors
+from ipalib import api
from ipalib import Command
from ipalib import Str
from ipalib.output import Output
@@ -680,10 +680,10 @@ class i18n_messages(Command):
},
}
has_output = (
- Output('messages', dict, doc=_('Dict of I18N messages')),
+ Output('texts', dict, doc=_('Dict of I18N messages')),
)
def execute(self, **options):
- return dict([("messages",json_serialize(self.messages))])
+ return dict(texts=json_serialize(self.messages))
def output_for_cli(self, textui, result, *args, **options):
print json.dumps(result, default=json_serialize)