test/data/lowered_etype.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 28 Jan 2014 15:27:59 +0100
branchstable
changeset 9981 7099bbd685aa
parent 6873 2db631a3f205
permissions -rw-r--r--
[hooks/security] allow edition of attributes with permissive permissions If an attribute has more permissive security rules than the entity type itself, we should be green and not deny action because of an early global entity permission check (with the more restrictive rules). Only if one attribute with the entity-level permission rules is edited will the global check be performed. Note: * the "if action == 'delete'" check at the entry of check_entity_attributes is a guard for a condition currently not happening in cubicweb itself (but application hooks could conceivably call this function with a 'delete' action) Closes #3489895.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6873
2db631a3f205 [schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
2db631a3f205 [schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     2
from yams.buildobjs import EntityType
2db631a3f205 [schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     3
2db631a3f205 [schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     4
class my_etype(EntityType):
2db631a3f205 [schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     5
    pass