equal
deleted
inserted
replaced
43 stereotypes.append(_('final')) |
43 stereotypes.append(_('final')) |
44 if stereotypes: |
44 if stereotypes: |
45 return u'%s <<%s>>' % (self.dc_title(), ', '.join(stereotypes)) |
45 return u'%s <<%s>>' % (self.dc_title(), ', '.join(stereotypes)) |
46 return self.dc_title() |
46 return self.dc_title() |
47 |
47 |
48 def db_key_name(self): |
|
49 """XXX goa specific""" |
|
50 return self.get('name') |
|
51 |
|
52 |
48 |
53 class CWRType(AnyEntity): |
49 class CWRType(AnyEntity): |
54 __regid__ = 'CWRType' |
50 __regid__ = 'CWRType' |
55 fetch_attrs, fetch_order = fetch_config(['name']) |
51 fetch_attrs, fetch_order = fetch_config(['name']) |
56 |
52 |
84 otype = rdef.otype |
80 otype = rdef.otype |
85 msg = self._cw._("can't set inlined=True, " |
81 msg = self._cw._("can't set inlined=True, " |
86 "%(stype)s %(rtype)s %(otype)s " |
82 "%(stype)s %(rtype)s %(otype)s " |
87 "has cardinality=%(card)s") |
83 "has cardinality=%(card)s") |
88 raise ValidationError(self.eid, {qname: msg % locals()}) |
84 raise ValidationError(self.eid, {qname: msg % locals()}) |
89 |
|
90 def db_key_name(self): |
|
91 """XXX goa specific""" |
|
92 return self.get('name') |
|
93 |
85 |
94 |
86 |
95 class CWRelation(AnyEntity): |
87 class CWRelation(AnyEntity): |
96 __regid__ = 'CWRelation' |
88 __regid__ = 'CWRelation' |
97 fetch_attrs = fetch_config(['cardinality'])[0] |
89 fetch_attrs = fetch_config(['cardinality'])[0] |