From 1eb3033311da1015ab841fa1e2615edb9eed5bdd Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Wed, 23 Feb 2011 16:40:17 -0500 Subject: Final i18n unit test fixes. --- ipalib/plugable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipalib/plugable.py') diff --git a/ipalib/plugable.py b/ipalib/plugable.py index 92e6392ae..48ff91987 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): -- cgit