summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2011-02-23 16:40:17 -0500
committerRob Crittenden <rcritten@redhat.com>2011-03-01 10:31:43 -0500
commit1eb3033311da1015ab841fa1e2615edb9eed5bdd (patch)
treef91005960ac3a5bd524f97e8dea127ec6e96a321 /ipalib/plugable.py
parentfc842e36504d39221fbfdafbaf8996b63e20de57 (diff)
downloadfreeipa-1eb3033311da1015ab841fa1e2615edb9eed5bdd.zip
freeipa-1eb3033311da1015ab841fa1e2615edb9eed5bdd.tar.gz
freeipa-1eb3033311da1015ab841fa1e2615edb9eed5bdd.tar.xz
Final i18n unit test fixes.
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index 92e6392..48ff919 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -183,10 +183,10 @@ class Plugin(ReadOnly):
'%s.%s' % (b.__module__, b.__name__) for b in cls.__bases__
)
self.doc = _(cls.__doc__)
- if self.doc is None:
+ if not self.doc.msg:
self.summary = '<%s>' % self.fullname
else:
- self.summary = unicode(self.doc).split('\n\n', 1)[0]
+ self.summary = unicode(self.doc).split('\n\n', 1)[0].strip()
log = logging.getLogger(self.fullname)
for name in ('debug', 'info', 'warning', 'error', 'critical', 'exception'):
if hasattr(self, name):