From a41e69fba360d7cfc83e8592528562e06573533b Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 2 Dec 2010 16:31:42 -0500 Subject: Add labels for passwords, fix output of exceptions, fix passwd output. Passwords didn't have internationalizable labels. Exceptions that occured during required input weren't printed as unicode so weren't being translated properly. Don't use output_for_cli() directly in the passwd plugin, use output.Output. ticket 352 --- ipalib/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index 1be392567..375607ff0 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -903,7 +903,7 @@ class cli(backend.Executioner): error = None while True: if error is not None: - print '>>> %s: %s' % (param.label, error) + print '>>> %s: %s' % (unicode(param.label), unicode(error)) raw = self.Backend.textui.prompt(param.label, default) try: value = param(raw, **kw) -- cgit