web/views/schema.py
changeset 5811 e77cea9721e7
parent 5689 18d4e78b9369
parent 5798 74d9a062965c
child 5819 1017163825c7
--- a/web/views/schema.py	Fri Jun 18 18:31:22 2010 +0200
+++ b/web/views/schema.py	Mon Jun 21 13:23:11 2010 +0200
@@ -575,7 +575,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):