summaryrefslogtreecommitdiffstats
path: root/ipalib/parameters.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2011-02-23 16:47:49 -0500
committerRob Crittenden <rcritten@redhat.com>2011-03-01 10:31:40 -0500
commitf3de95ce99855cb15e26d8007c8901aaec96c595 (patch)
treeab1924abd9e8d6b8fbe32834f5d110617ecead43 /ipalib/parameters.py
parent814595275293af836ceed7aeedf8412d94b13794 (diff)
downloadfreeipa-f3de95ce99855cb15e26d8007c8901aaec96c595.tar.gz
freeipa-f3de95ce99855cb15e26d8007c8901aaec96c595.tar.xz
freeipa-f3de95ce99855cb15e26d8007c8901aaec96c595.zip
Fix translatable strings in ipalib plugins.
Needed for xgettext/pygettext processing.
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r--ipalib/parameters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py
index daec1d6a9..47d532227 100644
--- a/ipalib/parameters.py
+++ b/ipalib/parameters.py
@@ -302,7 +302,7 @@ class Param(ReadOnly):
('cli_name', str, None),
('cli_short_name', str, None),
('label', (str, Gettext), None),
- ('doc', (str, Gettext), None),
+ ('doc', (basestring, Gettext), None),
('required', bool, True),
('multivalue', bool, False),
('primary_key', bool, False),
@@ -384,7 +384,7 @@ class Param(ReadOnly):
elif type(value) is str:
value = frozenset([value])
if (
- type(kind) is type and type(value) is not kind
+ type(kind) is type and not isinstance(value, kind)
or
type(kind) is tuple and not isinstance(value, kind)
):