needs unicode string tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 30 Apr 2009 13:06:59 +0200
branchtls-sprint
changeset 1583 1d6d0ea1cda1
parent 1582 67a86c70e42e
child 1584 323eed40a2b7
needs unicode string
web/views/primary.py
--- a/web/views/primary.py	Thu Apr 30 13:06:44 2009 +0200
+++ b/web/views/primary.py	Thu Apr 30 13:06:59 2009 +0200
@@ -234,12 +234,11 @@
         return rset
 
     def _render_relation(self, rset, displayinfo, defaultvid, showlabel):
-        self.w('<div class="section">')
+        self.w(u'<div class="section">')
         if showlabel:
-            label = self.req._(displayinfo['label'])
-            self.w('<h4>%s</h4>' % label)
+            self.w(u'<h4>%s</h4>' % self.req._(displayinfo['label']))
         self.wview(displayinfo.get('vid', defaultvid), rset)
-        self.w('</div>')
+        self.w(u'</div>')
 
     def _render_attribute(self, rschema, value, role='subject'):
         if rschema.is_final():