# HG changeset patch # User Nicolas Chauvat # Date 1243636938 -7200 # Node ID a6638de6d4daee76240a4e820cb8cefc819104f2 # Parent 3009899e1e519ec0e6f5613fb383ba586bbf2858 [views] reindent web/facet.py diff -r 3009899e1e51 -r a6638de6d4da web/facet.py --- a/web/facet.py Fri May 29 21:34:09 2009 +0200 +++ b/web/facet.py Sat May 30 00:42:18 2009 +0200 @@ -738,16 +738,16 @@ unselected_img = "black-uncheck.png" def __init__(self, req, facet, value, selected): - self.req = req + self.req = req self.facet = facet - self.value = value - self.selected = selected + self.value = value + self.selected = selected def _render(self): - title = html_escape(self.facet.title) - facetid = html_escape(self.facet.id) - self.w(u'
\n' % facetid) - if self.selected: + title = html_escape(self.facet.title) + facetid = html_escape(self.facet.id) + self.w(u'
\n' % facetid) + if self.selected: cssclass = ' facetValueSelected' imgsrc = self.req.datadir_url + self.selected_img imgalt = self.req._('selected') @@ -757,12 +757,12 @@ imgalt = self.req._('not selected') self.w(u'
\n' % (cssclass, html_escape(unicode(self.value)))) - self.w(u'
') + self.w(u'
') self.w(u'%s ' % (imgsrc, imgalt)) self.w(u'' % (facetid,title)) self.w(u'
\n') self.w(u'
\n') - self.w(u'
\n') + self.w(u'
\n') class FacetSeparator(HTMLWidget): def __init__(self, label=None):