summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/hbac.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2010-02-19 09:08:16 -0700
committerJason Gerard DeRose <jderose@redhat.com>2010-02-24 02:47:39 -0700
commit8c46e09735d076e9689d04936cdeeca6dfd770d3 (patch)
tree6d4c04028c21ae068f5dfde2357308035693c50c /ipalib/plugins/hbac.py
parentedf243d83a9c22a19d6dece035865f88d86cacb2 (diff)
downloadfreeipa-8c46e09735d076e9689d04936cdeeca6dfd770d3.tar.gz
freeipa-8c46e09735d076e9689d04936cdeeca6dfd770d3.tar.xz
freeipa-8c46e09735d076e9689d04936cdeeca6dfd770d3.zip
Translatable Param.label, Param.doc
Diffstat (limited to 'ipalib/plugins/hbac.py')
-rw-r--r--ipalib/plugins/hbac.py25
1 files changed, 15 insertions, 10 deletions
diff --git a/ipalib/plugins/hbac.py b/ipalib/plugins/hbac.py
index 29567cff..7fbabdc7 100644
--- a/ipalib/plugins/hbac.py
+++ b/ipalib/plugins/hbac.py
@@ -64,41 +64,45 @@ class hbac(LDAPObject):
takes_params = (
Str('cn',
cli_name='name',
- doc='rule name',
+ label=_('Rule name'),
primary_key=True,
),
StrEnum('accessruletype',
cli_name='type',
- doc='rule type (allow or deny)',
+ label=_('Rule type (allow or deny)'),
values=(u'allow', u'deny'),
),
Str('servicename?',
cli_name='service',
- doc='name of service the rule applies to (e.g. ssh)',
+ label=_('Service name'),
+ doc=_('Name of service the rule applies to (e.g. ssh)'),
),
# FIXME: {user,host,sourcehost}categories should expand in the future
StrEnum('usercategory?',
cli_name='usercat',
- doc='user category the rule applies to',
+ label=_('User category'),
+ doc=_('User category the rule applies to'),
values=(u'all', ),
),
StrEnum('hostcategory?',
cli_name='hostcat',
- doc='host category the rule applies to',
+ label=_('Host category'),
+ doc=_('Host category the rule applies to'),
values=(u'all', ),
),
StrEnum('sourcehostcategory?',
cli_name='srchostcat',
- doc='source host category the rule applies to',
+ label=_('Source host category'),
+ doc=_('Source host category the rule applies to'),
values=(u'all', ),
),
AccessTime('accesstime?',
cli_name='time',
- doc='access time',
+ label=_('Access time'),
),
Str('description?',
cli_name='desc',
- doc='description',
+ label=_('Description'),
),
)
@@ -224,10 +228,11 @@ class hbac_add_accesstime(LDAPQuery):
"""
Add access time to HBAC rule.
"""
+
takes_options = (
AccessTime('accesstime',
cli_name='time',
- doc='access time',
+ label=_('Access time'),
),
)
@@ -265,7 +270,7 @@ class hbac_remove_accesstime(LDAPQuery):
takes_options = (
AccessTime('accesstime?',
cli_name='time',
- doc='access time',
+ label=_('Access time'),
),
)