branch | stable |
changeset 3689 | deb13e88e037 |
parent 2101 | 08003e0354a7 |
child 4023 | eae23c40627a |
child 4212 | ab6573088b4a |
--- a/goa/__init__.py Thu Oct 15 18:43:04 2009 +0200 +++ b/goa/__init__.py Thu Oct 15 20:29:21 2009 +0200 @@ -65,7 +65,7 @@ edef.name = edef.name.encode() assert re.match(r'[A-Z][A-Za-z0-9]*[a-z]+[0-9]*$', edef.name), repr(edef.name) eschema = super(CubicWebSchema, self).add_entity_type(edef) - if not eschema.is_final(): + if not eschema.final: # automatically add the eid relation to non final entity types rdef = ybo.RelationDefinition(eschema.type, 'eid', 'Bytes', cardinality='?1', uid=True)