# HG changeset patch # User Laurent Peuch # Date 1557962631 -7200 # Node ID bd6ba326765ef0b7a89b34f97b4859bd290aac82 # Parent 0357c05f203ef53f7723e47a6f18406de4ed085f [entities] display CWConstraint type in its repr diff -r 0357c05f203e -r bd6ba326765e cubicweb/entities/schemaobjs.py --- a/cubicweb/entities/schemaobjs.py Wed May 15 15:44:35 2019 +0200 +++ b/cubicweb/entities/schemaobjs.py Thu May 16 01:23:51 2019 +0200 @@ -141,6 +141,10 @@ __regid__ = 'CWConstraint' fetch_attrs, cw_fetch_order = fetch_config(['value']) + def __repr__(self): + return '' % ( + self.e_schema, self.eid, self.type, list(self.cw_attr_cache), id(self)) + def dc_title(self): return '%s(%s)' % (self.cstrtype[0].name, self.value or u'')