web/views/schema.py
branchstable
changeset 5798 74d9a062965c
parent 5525 c4eee9921e19
child 5811 e77cea9721e7
equal deleted inserted replaced
5796:351e84e18a61 5798:74d9a062965c
   576 
   576 
   577     def cell_call(self, row, col):
   577     def cell_call(self, row, col):
   578         entity = self.cw_rset.get_entity(row, col)
   578         entity = self.cw_rset.get_entity(row, col)
   579         rschema = self._cw.vreg.schema.rschema(entity.rtype.name)
   579         rschema = self._cw.vreg.schema.rschema(entity.rtype.name)
   580         rdef = rschema.rdefs[(entity.stype.name, entity.otype.name)]
   580         rdef = rschema.rdefs[(entity.stype.name, entity.otype.name)]
   581         constraints = [xml_escape(str(c)) for c in getattr(rdef, 'constraints')]
   581         constraints = [xml_escape(unicode(c)) for c in getattr(rdef, 'constraints')]
   582         self.w(u'<br/>'.join(constraints))
   582         self.w(u'<br/>'.join(constraints))
   583 
   583 
   584 class CWAttributeOptionsCell(EntityView):
   584 class CWAttributeOptionsCell(EntityView):
   585     __regid__ = 'rdef-options-cell'
   585     __regid__ = 'rdef-options-cell'
   586     __select__ = implements('CWAttribute')
   586     __select__ = implements('CWAttribute')