# HG changeset patch # User Sylvain Thénault # Date 1311669206 -7200 # Node ID f1b6e7c09a6f9676e69766283088e7ef4ad67a31 # Parent 4f5ab60e71cc0d8757847a429cfaa5b059e3af55 [schema] restrict source mapping 'cw_schema' relation to non final relation, we currently have no use for attributes diff -r 4f5ab60e71cc -r f1b6e7c09a6f misc/migration/3.13.3_Any.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/misc/migration/3.13.3_Any.py Tue Jul 26 10:33:26 2011 +0200 @@ -0,0 +1,2 @@ +drop_relation_definition('CWSourceSchemaConfig', 'cw_schema', 'CWAttribute') +sync_schema_props_perms('cw_schema') diff -r 4f5ab60e71cc -r f1b6e7c09a6f schemas/base.py --- a/schemas/base.py Fri Jul 22 15:58:05 2011 +0200 +++ b/schemas/base.py Tue Jul 26 10:33:26 2011 +0200 @@ -324,8 +324,9 @@ 'CWSource', inlined=True, cardinality='1*', composite='object', __permissions__=RELATION_MANAGERS_PERMISSIONS) cw_schema = SubjectRelation( - ('CWEType', 'CWRType', 'CWAttribute', 'CWRelation'), + ('CWEType', 'CWRType', 'CWRelation'), inlined=True, cardinality='1*', composite='object', + constraints=[RQLConstraint('NOT O final TRUE')], __permissions__=RELATION_MANAGERS_PERMISSIONS) options = String(description=_('allowed options depends on the source type'))