idviews: Fix casing of ID Views to be consistent

Replace all occurences of "ID view(s)" with "ID View(s)".

Part of: https://fedorahosted.org/freeipa/ticket/3979

Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Tomas Babej 2014-09-22 11:53:20 +02:00 committed by Martin Kosek
parent bba3769196
commit 1d6f591cc5

View File

@ -36,8 +36,8 @@ if api.env.in_server and api.env.context in ['lite', 'server']:
_dcerpc_bindings_installed = False _dcerpc_bindings_installed = False
__doc__ = _(""" __doc__ = _("""
ID views ID Views
Manage ID views Manage ID Views
IPA allows to override certain properties of users and groups per each host. IPA allows to override certain properties of users and groups per each host.
This functionality is primarily used to allow migration from older systems or This functionality is primarily used to allow migration from older systems or
other Identity Management solutions. other Identity Management solutions.
@ -49,18 +49,18 @@ register = Registry()
@register() @register()
class idview(LDAPObject): class idview(LDAPObject):
""" """
ID view object. ID View object.
""" """
container_dn = api.env.container_views container_dn = api.env.container_views
object_name = _('ID view') object_name = _('ID View')
object_name_plural = _('ID views') object_name_plural = _('ID Views')
object_class = ['ipaIDView', 'top'] object_class = ['ipaIDView', 'top']
default_attributes = ['cn', 'description'] default_attributes = ['cn', 'description']
rdn_is_primary_key = True rdn_is_primary_key = True
label = _('ID views') label = _('ID Views')
label_singular = _('ID view') label_singular = _('ID View')
takes_params = ( takes_params = (
Str('cn', Str('cn',
@ -89,31 +89,31 @@ class idview(LDAPObject):
@register() @register()
class idview_add(LDAPCreate): class idview_add(LDAPCreate):
__doc__ = _('Add a new ID View.') __doc__ = _('Add a new ID View.')
msg_summary = _('Added ID view "%(value)s"') msg_summary = _('Added ID View "%(value)s"')
@register() @register()
class idview_del(LDAPDelete): class idview_del(LDAPDelete):
__doc__ = _('Delete an ID view.') __doc__ = _('Delete an ID View.')
msg_summary = _('Deleted ID view "%(value)s"') msg_summary = _('Deleted ID View "%(value)s"')
@register() @register()
class idview_mod(LDAPUpdate): class idview_mod(LDAPUpdate):
__doc__ = _('Modify an ID view.') __doc__ = _('Modify an ID View.')
msg_summary = _('Modified an ID view "%(value)s"') msg_summary = _('Modified an ID View "%(value)s"')
@register() @register()
class idview_find(LDAPSearch): class idview_find(LDAPSearch):
__doc__ = _('Search for an ID view.') __doc__ = _('Search for an ID View.')
msg_summary = ngettext('%(count)d ID view matched', msg_summary = ngettext('%(count)d ID View matched',
'%(count)d ID views matched', 0) '%(count)d ID Views matched', 0)
@register() @register()
class idview_show(LDAPRetrieve): class idview_show(LDAPRetrieve):
__doc__ = _('Display information about an ID view.') __doc__ = _('Display information about an ID View.')
takes_options = LDAPRetrieve.takes_options + ( takes_options = LDAPRetrieve.takes_options + (
Flag('show_hosts?', Flag('show_hosts?',
@ -276,24 +276,24 @@ class baseidview_apply(LDAPQuery):
@register() @register()
class idview_apply(baseidview_apply): class idview_apply(baseidview_apply):
__doc__ = _('Applies ID view to specified hosts or current members of ' __doc__ = _('Applies ID View to specified hosts or current members of '
'specified hostgroups. If any other ID view is applied to ' 'specified hostgroups. If any other ID View is applied to '
'the host, it is overriden.') 'the host, it is overriden.')
member_count_out = (_('ID view applied to %i host.'), member_count_out = (_('ID View applied to %i host.'),
_('ID view applied to %i hosts.')) _('ID View applied to %i hosts.'))
msg_summary = 'Applied ID view "%(value)s"' msg_summary = 'Applied ID View "%(value)s"'
takes_options = ( takes_options = (
Str('host*', Str('host*',
cli_name='hosts', cli_name='hosts',
doc=_('Hosts to apply the ID view to'), doc=_('Hosts to apply the ID View to'),
label=_('hosts'), label=_('hosts'),
), ),
Str('hostgroup*', Str('hostgroup*',
cli_name='hostgroups', cli_name='hostgroups',
doc=_('Hostgroups to whose hosts apply the ID view to. Please note ' doc=_('Hostgroups to whose hosts apply the ID View to. Please note '
'that view is not applied automatically to any hosts added ' 'that view is not applied automatically to any hosts added '
'to the hostgroup after running the idview-apply command.'), 'to the hostgroup after running the idview-apply command.'),
label=_('hostgroups'), label=_('hostgroups'),
@ -304,39 +304,39 @@ class idview_apply(baseidview_apply):
output.summary, output.summary,
output.Output('succeeded', output.Output('succeeded',
type=dict, type=dict,
doc=_('Hosts that this ID view was applied to.'), doc=_('Hosts that this ID View was applied to.'),
), ),
output.Output('failed', output.Output('failed',
type=dict, type=dict,
doc=_('Hosts or hostgroups that this ID view could not be ' doc=_('Hosts or hostgroups that this ID View could not be '
'applied to.'), 'applied to.'),
), ),
output.Output('completed', output.Output('completed',
type=int, type=int,
doc=_('Number of hosts the ID view was applied to:'), doc=_('Number of hosts the ID View was applied to:'),
), ),
) )
@register() @register()
class idview_unapply(baseidview_apply): class idview_unapply(baseidview_apply):
__doc__ = _('Clears ID view from specified hosts or current members of ' __doc__ = _('Clears ID View from specified hosts or current members of '
'specified hostgroups.') 'specified hostgroups.')
member_count_out = (_('ID view cleared from %i host.'), member_count_out = (_('ID View cleared from %i host.'),
_('ID view cleared from %i hosts.')) _('ID View cleared from %i hosts.'))
msg_summary = 'Cleared ID views' msg_summary = 'Cleared ID Views'
takes_options = ( takes_options = (
Str('host*', Str('host*',
cli_name='hosts', cli_name='hosts',
doc=_('Hosts to clear (any) ID view from.'), doc=_('Hosts to clear (any) ID View from.'),
label=_('hosts'), label=_('hosts'),
), ),
Str('hostgroup*', Str('hostgroup*',
cli_name='hostgroups', cli_name='hostgroups',
doc=_('Hostgroups whose hosts should have ID views cleared. Note ' doc=_('Hostgroups whose hosts should have ID Views cleared. Note '
'that view is not cleared automatically from any host added ' 'that view is not cleared automatically from any host added '
'to the hostgroup after running idview-unapply command.'), 'to the hostgroup after running idview-unapply command.'),
label=_('hostgroups'), label=_('hostgroups'),
@ -347,16 +347,16 @@ class idview_unapply(baseidview_apply):
output.summary, output.summary,
output.Output('succeeded', output.Output('succeeded',
type=dict, type=dict,
doc=_('Hosts that ID view was cleared from.'), doc=_('Hosts that ID View was cleared from.'),
), ),
output.Output('failed', output.Output('failed',
type=dict, type=dict,
doc=_('Hosts or hostgroups that ID view could not be cleared ' doc=_('Hosts or hostgroups that ID View could not be cleared '
'from.'), 'from.'),
), ),
output.Output('completed', output.Output('completed',
type=int, type=int,
doc=_('Number of hosts that had a ID view was unset:'), doc=_('Number of hosts that had a ID View was unset:'),
), ),
) )