web/views/schema.py
branchstable
changeset 5798 74d9a062965c
parent 5525 c4eee9921e19
child 5811 e77cea9721e7
--- a/web/views/schema.py	Fri Jun 18 18:49:17 2010 +0200
+++ b/web/views/schema.py	Sat Jun 19 16:08:08 2010 +0200
@@ -578,7 +578,7 @@
         entity = self.cw_rset.get_entity(row, col)
         rschema = self._cw.vreg.schema.rschema(entity.rtype.name)
         rdef = rschema.rdefs[(entity.stype.name, entity.otype.name)]
-        constraints = [xml_escape(str(c)) for c in getattr(rdef, 'constraints')]
+        constraints = [xml_escape(unicode(c)) for c in getattr(rdef, 'constraints')]
         self.w(u'<br/>'.join(constraints))
 
 class CWAttributeOptionsCell(EntityView):