diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2010-02-19 09:08:16 -0700 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2010-02-24 02:47:39 -0700 |
commit | 8c46e09735d076e9689d04936cdeeca6dfd770d3 (patch) | |
tree | 6d4c04028c21ae068f5dfde2357308035693c50c /ipalib/plugins/migration.py | |
parent | edf243d83a9c22a19d6dece035865f88d86cacb2 (diff) | |
download | freeipa-8c46e09735d076e9689d04936cdeeca6dfd770d3.tar.gz freeipa-8c46e09735d076e9689d04936cdeeca6dfd770d3.tar.xz freeipa-8c46e09735d076e9689d04936cdeeca6dfd770d3.zip |
Translatable Param.label, Param.doc
Diffstat (limited to 'ipalib/plugins/migration.py')
-rw-r--r-- | ipalib/plugins/migration.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/ipalib/plugins/migration.py b/ipalib/plugins/migration.py index b509675f..5ae63567 100644 --- a/ipalib/plugins/migration.py +++ b/ipalib/plugins/migration.py @@ -31,6 +31,7 @@ from ipalib import api, errors, output, uuid from ipalib import Command, List, Password, Str from ipalib.cli import to_cli from ipaserver.plugins.ldap2 import ldap2 +from ipalib import _ # USER MIGRATION CALLBACKS AND VARS @@ -72,7 +73,7 @@ def _pre_migrate_user(ldap, pkey, dn, entry_attrs, failed, config, ctx): entry_attrs['krbprincipalname'] = principal else: failed[pkey] = _krb_err_msg % principal - + return dn @@ -93,7 +94,7 @@ def _pre_migrate_group(ldap, pkey, dn, entry_attrs, failed, config, ctx): """ new_members = [] entry_attrs.setdefault(member_attr, []) - for m in entry_attrs[member_attr]: + for m in entry_attrs[member_attr]: col = m.find(',') if col == -1: continue @@ -162,7 +163,8 @@ class migrate_ds(Command): takes_args = ( Str('ldapuri', validate_ldapuri, cli_name='ldap_uri', - doc='LDAP URI of DS server to migrate from', + label=_('LDAP URI'), + doc=_('LDAP URI of DS server to migrate from'), ), Password('bindpw', cli_name='password', @@ -173,19 +175,21 @@ class migrate_ds(Command): takes_options = ( Str('binddn?', cli_name='bind_dn', - doc='bind DN', + label=_('Bind DN'), default=u'cn=directory manager', autofill=True, ), Str('usercontainer?', cli_name='user_container', - doc='RDN of container for users in DS', + label=_('User container'), + doc=_('RDN of container for users in DS'), default=u'ou=people', autofill=True, ), Str('groupcontainer?', cli_name='group_container', - doc='RDN of container for groups in DS', + label=_('Group container'), + doc=_('RDN of container for groups in DS'), default=u'ou=groups', autofill=True, ), @@ -371,4 +375,3 @@ class migrate_ds(Command): textui.print_plain(self.pwd_migration_msg) api.register(migrate_ds) - |