equal
deleted
inserted
replaced
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') |