diff options
author | Pavel Zuna <pzuna@redhat.com> | 2011-02-23 16:47:49 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-03-01 10:31:40 -0500 |
commit | f3de95ce99855cb15e26d8007c8901aaec96c595 (patch) | |
tree | ab1924abd9e8d6b8fbe32834f5d110617ecead43 /ipalib/parameters.py | |
parent | 814595275293af836ceed7aeedf8412d94b13794 (diff) | |
download | freeipa-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.py | 4 |
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) ): |