# HG changeset patch # User Sylvain Thénault # Date 1434036911 -7200 # Node ID 82071f767cb8c86a4552d48e31bc23fe39e056ae # Parent cb3a48780615a5287938cc867a234d5c00c25dac [schemas] cwuri should be read-only Closes #5457566 diff -r cb3a48780615 -r 82071f767cb8 misc/migration/3.20.8_Any.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/misc/migration/3.20.8_Any.py Thu Jun 11 17:35:11 2015 +0200 @@ -0,0 +1,1 @@ +sync_schema_props_perms('cwuri') diff -r cb3a48780615 -r 82071f767cb8 schemas/base.py --- a/schemas/base.py Mon Apr 06 21:49:06 2015 +0200 +++ b/schemas/base.py Thu Jun 11 17:35:11 2015 +0200 @@ -26,7 +26,8 @@ Boolean) from cubicweb.schema import ( RQLConstraint, WorkflowableEntityType, ERQLExpression, RRQLExpression, - PUB_SYSTEM_ENTITY_PERMS, PUB_SYSTEM_REL_PERMS, PUB_SYSTEM_ATTR_PERMS) + PUB_SYSTEM_ENTITY_PERMS, PUB_SYSTEM_REL_PERMS, PUB_SYSTEM_ATTR_PERMS, + RO_ATTR_PERMS) class CWUser(WorkflowableEntityType): """define a CubicWeb user""" @@ -160,7 +161,7 @@ class cwuri(RelationType): """internal entity uri""" - __permissions__ = PUB_SYSTEM_ATTR_PERMS + __permissions__ = RO_ATTR_PERMS cardinality = '11' subject = '*' object = 'String' diff -r cb3a48780615 -r 82071f767cb8 web/test/unittest_views_editforms.py --- a/web/test/unittest_views_editforms.py Mon Apr 06 21:49:06 2015 +0200 +++ b/web/test/unittest_views_editforms.py Thu Jun 11 17:35:11 2015 +0200 @@ -67,7 +67,6 @@ [('last_login_time', 'subject'), ('cw_source', 'subject'), ('creation_date', 'subject'), - ('cwuri', 'subject'), ('modification_date', 'subject'), ('created_by', 'subject'), ('owned_by', 'subject'), @@ -127,7 +126,6 @@ self.assertListEqual(rbc(e, 'main', 'metadata'), [('cw_source', 'subject'), ('creation_date', 'subject'), - ('cwuri', 'subject'), ('modification_date', 'subject'), ('created_by', 'subject'), ('owned_by', 'subject'),