# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1270100302 -7200
#      Thu Apr 01 07:38:22 2010 +0200
# Branch stable
# Node ID f720e4f589b00ad8ae37f4c2af72f64fa921a365
# Parent  b0b42cfa25e3fd47fab085e3db58b1d5962e7f86
cleanup

diff --git a/views/secondary.py b/views/secondary.py
--- a/views/secondary.py
+++ b/views/secondary.py
@@ -229,7 +229,8 @@
         _ = lambda ertype, form='': display_name(self._cw, ertype, form)
         reldata = []
         w = reldata.append
-        if 'comments' in self._cw.vreg.schema and 'BlogEntry' in self._cw.vreg.schema.rschema('comments').objects():
+        if 'comments' in self._cw.vreg.schema and \
+               'BlogEntry' in self._cw.vreg.schema.rschema('comments').objects():
             count = self._cw.execute('Any COUNT(C) WHERE C comments B, B eid %(x)s',
                                      {'x': entity.eid}, 'x')[0][0]
             if count:
@@ -237,7 +238,8 @@
                 w(u'<a href="%s">%s %s</a>' % (url, count, _('Comment', 'plural')))
             else:
                 w(u'%s %s' % (count, _('Comment')))
-        if 'tags' in self._cw.vreg.schema and 'BlogEntry' in self._cw.vreg.schema.rschema('tags').objects():
+        if 'tags' in self._cw.vreg.schema and \
+               'BlogEntry' in self._cw.vreg.schema.rschema('tags').objects():
             tag_rset = entity.related('tags', 'object')
             if tag_rset:
                 w(u'%s %s' % (_('tags', 'object'), self._cw.view('csv', tag_rset)))
@@ -254,6 +256,7 @@
     def index_display(self, start, stop):
         return u'%s' % (int(start / self.page_size)+1)
 
+
 # WFHistoryView ###############################################################
 
 class BlogEntryWFHistoryVComponent(workflow.WFHistoryVComponent):