constraints can contain unicode values stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Sat, 19 Jun 2010 16:08:08 +0200
branchstable
changeset 5798 74d9a062965c
parent 5796 351e84e18a61
child 5799 93f4b4d2fecf
constraints can contain unicode values
web/views/schema.py
--- 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):