mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Translatable Param.label, Param.doc
This commit is contained in:
@@ -118,41 +118,41 @@ class pwpolicy(Object):
|
||||
|
||||
takes_params = (
|
||||
Str('cn?',
|
||||
label='Group',
|
||||
label=_('Group'),
|
||||
flags=['no_create', 'no_update', 'no_search'],
|
||||
),
|
||||
Int('krbmaxpwdlife?',
|
||||
cli_name='maxlife',
|
||||
doc='Max. Password Lifetime (days)',
|
||||
label='Maximum lifetime (in days)',
|
||||
label=_('Max lifetime (days)'),
|
||||
doc=_('Maximum password lifetime (in days)'),
|
||||
minvalue=0,
|
||||
attribute=True,
|
||||
),
|
||||
Int('krbminpwdlife?',
|
||||
cli_name='minlife',
|
||||
doc='Min. Password Lifetime (hours)',
|
||||
label='Mininum lifetime (in hours)',
|
||||
label=_('Min lifetime (hours)'),
|
||||
doc=_('Minimum password lifetime (in hours)'),
|
||||
minvalue=0,
|
||||
attribute=True,
|
||||
),
|
||||
Int('krbpwdhistorylength?',
|
||||
cli_name='history',
|
||||
doc='Password History Size',
|
||||
label='Password History Size',
|
||||
label=_('History size'),
|
||||
doc=_('Password history size'),
|
||||
minvalue=0,
|
||||
attribute=True,
|
||||
),
|
||||
Int('krbpwdmindiffchars?',
|
||||
cli_name='minclasses',
|
||||
doc='Min. Number of Character Classes',
|
||||
label='Min. Number of Character Classes',
|
||||
label=_('Character classes'),
|
||||
doc=_('Minimum number of character classes'),
|
||||
minvalue=0,
|
||||
attribute=True,
|
||||
),
|
||||
Int('krbpwdminlength?',
|
||||
cli_name='minlength',
|
||||
doc='Min. Length of Password',
|
||||
label='Min. Length of Password',
|
||||
label=_('Min length'),
|
||||
doc=_('Minimum length of password'),
|
||||
minvalue=0,
|
||||
attribute=True,
|
||||
),
|
||||
@@ -167,15 +167,17 @@ class pwpolicy_add(crud.Create):
|
||||
"""
|
||||
|
||||
msg_summary = _('Added policy for group "%(value)s"')
|
||||
|
||||
takes_options = (
|
||||
Str('group',
|
||||
doc='Group to set policy for',
|
||||
label=_('Group'),
|
||||
doc=_('Group to set policy for'),
|
||||
attribute=False,
|
||||
),
|
||||
Int('cospriority',
|
||||
cli_name='priority',
|
||||
label='Priority',
|
||||
doc='Priority of the policy. Higher number equals lower priority',
|
||||
label=_('Priority'),
|
||||
doc=_('Priority of the policy (higher number equals lower priority)'),
|
||||
minvalue=0,
|
||||
attribute=True,
|
||||
),
|
||||
@@ -220,12 +222,13 @@ class pwpolicy_mod(crud.Update):
|
||||
msg_summary = _('Modified policy for group "%(value)s"')
|
||||
takes_options = (
|
||||
Str('group?',
|
||||
doc='Group to set policy for',
|
||||
label=_('Group'),
|
||||
doc=_('Group to set policy for'),
|
||||
attribute=False,
|
||||
),
|
||||
Int('cospriority?',
|
||||
cli_name='priority',
|
||||
doc='Priority of the policy. Higher number equals lower priority',
|
||||
label=_('Priority'),
|
||||
doc=_('Priority of the policy (higher number equals lower priority)'),
|
||||
minvalue=0,
|
||||
attribute=True,
|
||||
),
|
||||
@@ -315,10 +318,12 @@ class pwpolicy_show(Method):
|
||||
)
|
||||
takes_options = (
|
||||
Str('group?',
|
||||
doc='Group to display policy',
|
||||
label=_('Group'),
|
||||
doc=_('Group to display policy'),
|
||||
),
|
||||
Str('user?',
|
||||
doc='Display policy applied to a given user',
|
||||
label=_('User'),
|
||||
doc=_('Display policy applied to a given user'),
|
||||
),
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user