diff options
author | Sumit Bose <sbose@redhat.com> | 2012-08-23 14:17:34 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-09-07 16:50:35 +0200 |
commit | 377e1267b75e75fe0f5c7c557e1a9cce6b9fa160 (patch) | |
tree | b70d6e88ae95d3de5408e6613e57f90c407e3005 /ipalib | |
parent | 1915c2d4dd949edfaefa915daf2250be6cfaeeb3 (diff) | |
download | freeipa-377e1267b75e75fe0f5c7c557e1a9cce6b9fa160.tar.gz freeipa-377e1267b75e75fe0f5c7c557e1a9cce6b9fa160.tar.xz freeipa-377e1267b75e75fe0f5c7c557e1a9cce6b9fa160.zip |
Rename range CLI to idrange
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/idrange.py (renamed from ipalib/plugins/range.py) | 28 | ||||
-rw-r--r-- | ipalib/plugins/internal.py | 2 | ||||
-rw-r--r-- | ipalib/plugins/trust.py | 4 |
3 files changed, 17 insertions, 17 deletions
diff --git a/ipalib/plugins/range.py b/ipalib/plugins/idrange.py index cc0c12753..23c8e0c34 100644 --- a/ipalib/plugins/range.py +++ b/ipalib/plugins/idrange.py @@ -31,7 +31,7 @@ __doc__ = _(""" Manage ID ranges """) -class range(LDAPObject): +class idrange(LDAPObject): """ Range object. """ @@ -46,8 +46,8 @@ class range(LDAPObject): 'ipasecondarybaserid', 'ipanttrusteddomainsid', 'iparangetype'] - label = _('Ranges') - label_singular = _('Range') + label = _('ID Ranges') + label_singular = _('ID Range') takes_params = ( Str('cn', @@ -143,7 +143,7 @@ class range(LDAPObject): error=_('range modification leaving objects with ID out ' 'of the defined range is not allowed')) -class range_add(LDAPCreate): +class idrange_add(LDAPCreate): __doc__ = _('Add new ID range.') msg_summary = _('Added ID range "%(value)s"') @@ -168,7 +168,7 @@ class range_add(LDAPCreate): self.obj.handle_iparangetype(entry_attrs, options, keep_objectclass=True) return dn -class range_del(LDAPDelete): +class idrange_del(LDAPDelete): __doc__ = _('Delete an ID range.') msg_summary = _('Deleted ID range "%(value)s"') @@ -185,7 +185,7 @@ class range_del(LDAPDelete): old_base_id, old_range_size, 0, 0) return dn -class range_find(LDAPSearch): +class idrange_find(LDAPSearch): __doc__ = _('Search for ranges.') msg_summary = ngettext( @@ -204,7 +204,7 @@ class range_find(LDAPSearch): self.obj.handle_iparangetype(entry, options) return truncated -class range_show(LDAPRetrieve): +class idrange_show(LDAPRetrieve): __doc__ = _('Display information about a range.') def pre_callback(self, ldap, dn, attrs_list, *keys, **options): @@ -217,7 +217,7 @@ class range_show(LDAPRetrieve): self.obj.handle_iparangetype(entry_attrs, options) return dn -class range_mod(LDAPUpdate): +class idrange_mod(LDAPUpdate): __doc__ = _('Modify ID range.') msg_summary = _('Modified ID range "%(value)s"') @@ -249,9 +249,9 @@ class range_mod(LDAPUpdate): self.obj.handle_iparangetype(entry_attrs, options) return dn -api.register(range) -api.register(range_add) -api.register(range_mod) -api.register(range_del) -api.register(range_find) -api.register(range_show) +api.register(idrange) +api.register(idrange_add) +api.register(idrange_mod) +api.register(idrange_del) +api.register(idrange_find) +api.register(idrange_show) diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py index 98a5ceeb5..a08549c30 100644 --- a/ipalib/plugins/internal.py +++ b/ipalib/plugins/internal.py @@ -506,7 +506,7 @@ class i18n_messages(Command): "pwpolicy": { "identity": _("Password Policy"), }, - "range": { + "idrange": { "details": _("Range Settings"), "ipabaseid": _("Base ID"), "ipabaserid": _("Primary RID base"), diff --git a/ipalib/plugins/trust.py b/ipalib/plugins/trust.py index f19a0a874..5af5111d5 100644 --- a/ipalib/plugins/trust.py +++ b/ipalib/plugins/trust.py @@ -182,7 +182,7 @@ class trust_add(LDAPCreate): range_name = keys[-1].upper()+'_id_range' try: - old_range = api.Command['range_show'](range_name) + old_range = api.Command['idrange_show'](range_name) except errors.NotFound, e: old_range = None @@ -209,7 +209,7 @@ class trust_add(LDAPCreate): base_id = 200000 + (pysss_murmur.murmurhash3(dom_sid, len(dom_sid), 0xdeadbeef) % 10000) * 200000 try: - new_range = api.Command['range_add'](range_name, + new_range = api.Command['idrange_add'](range_name, ipabaseid=base_id, ipaidrangesize=options['range_size'], ipabaserid=0, |