.hgignore
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 28 Jul 2015 09:25:26 +0200
changeset 10553 1d824df4f2bd
parent 10524 5392f100c0e3
child 11029 c9d12d1d3081
permissions -rw-r--r--
Fix (de)serialization of ComputedRelation read permissions For normal relation types, permissions don't need to be stored since they're just default values for the relation definitions. However, computed relations are serialized (as CWComputedRType), while their relation definitions are added at schema finalization time, and are only in memory. So add the 'read_permission' relation to CWComputedRType, and the appropriate hooks to save and restore those permissions. To avoid having to touch yams, we drop the 'add' and 'delete' permissions from the default computed relation permissions; this should probably be backported there. The actual permissions (set on the relation definitions) are hardcoded in finalize_computed_relations anyway. In deserialize_schema, the CWComputedRType handling needs to be delayed a little bit, until after we've called deserialize_ertype_permissions. The rql2sql test is adjusted because CWComputedRType has a 'name' attribute and the 'read_permission' relation, which generates ambiguity vs CWEType. We add an explicit CubicWebRelationSchema.check_permission_definitions, since we need to check both that computed and non-computed rtypes are defined properly. Based on report and initial patch from Christophe de Vienne (thanks!). Closes #5706307
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3116
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     1
\.svn
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     2
^build$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     3
^dist$
10512
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10491
diff changeset
     4
\.egg-info$
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10491
diff changeset
     5
^.tox$
3116
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     6
\.pyc$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     7
\.pyo$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     8
\.bak$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     9
\.old$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    10
\~$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    11
\#.*?\#$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    12
\.swp$
3990
14e14fef4460 hide en apidoc in .hgignore
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 3116
diff changeset
    13
^doc/book/en/apidoc$
7078
bad26a22fe29 [test] New Handling of database for test.
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 3990
diff changeset
    14
\.old$
bad26a22fe29 [test] New Handling of database for test.
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 3990
diff changeset
    15
syntax: regexp
10466
cf7a1ad9ee42 Update hgignore for temporary test databases
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10441
diff changeset
    16
.*/data.*/database/.*\.sqlite
cf7a1ad9ee42 Update hgignore for temporary test databases
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10441
diff changeset
    17
.*/data.*/database/.*\.config
7078
bad26a22fe29 [test] New Handling of database for test.
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 3990
diff changeset
    18
.*/data/database/tmpdb.*
8252
3e769d21f67a [hg] ignore ldap database
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 7972
diff changeset
    19
.*/data/ldapdb/.*
10524
5392f100c0e3 Update hgignore
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10512
diff changeset
    20
.*/data/uicache/
5392f100c0e3 Update hgignore
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10512
diff changeset
    21
.*/data/cubes/.*/i18n/.*\.po
7972
99210c8b63b0 Add generated documentation to .hgignore.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 7078
diff changeset
    22
^doc/html/
99210c8b63b0 Add generated documentation to .hgignore.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 7078
diff changeset
    23
^doc/doctrees/
99210c8b63b0 Add generated documentation to .hgignore.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 7078
diff changeset
    24
^doc/book/en/devweb/js_api/
10491
c67bcee93248 [doc] Restructure the documentation
Christophe de Vienne <christophe@unlish.com>
parents: 10466
diff changeset
    25
^doc/_build
c67bcee93248 [doc] Restructure the documentation
Christophe de Vienne <christophe@unlish.com>
parents: 10466
diff changeset
    26
^doc/js_api/
c67bcee93248 [doc] Restructure the documentation
Christophe de Vienne <christophe@unlish.com>
parents: 10466
diff changeset
    27
data/pgdb/
10466
cf7a1ad9ee42 Update hgignore for temporary test databases
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10441
diff changeset
    28
data.*/pgdb.*