# HG changeset patch # User Sylvain Thénault # Date 1245392861 -7200 # Node ID dc1eedd06766149c88e62a397d9a79e0c925da8d # Parent 0012d997b992e0cc94b4d9369d58b4981275f8f2 deal with empty site-title diff -r 0012d997b992 -r dc1eedd06766 web/views/basecomponents.py --- a/web/views/basecomponents.py Fri Jun 19 08:23:45 2009 +0200 +++ b/web/views/basecomponents.py Fri Jun 19 08:27:41 2009 +0200 @@ -148,8 +148,10 @@ site_wide = True def call(self): - self.w(u'%s' % ( - self.req.base_url(), self.req.property_value('ui.site-title'))) + title = self.req.property_value('ui.site-title') + if title: + self.w(u'%s' % ( + self.req.base_url(), title)) class SeeAlsoVComponent(component.RelatedObjectsVComponent): diff -r 0012d997b992 -r dc1eedd06766 web/views/basetemplates.py --- a/web/views/basetemplates.py Fri Jun 19 08:23:45 2009 +0200 +++ b/web/views/basetemplates.py Fri Jun 19 08:27:41 2009 +0200 @@ -431,7 +431,7 @@ self.w(u'
' % (id, klass)) if title: self.w(u'
%s
' - % self.req.property_value('ui.site-title')) + % (self.req.property_value('ui.site-title') or u' ')) self.w(u'
\n') if message: