17 permsdict = ss.deserialize_ertype_permissions(session) |
17 permsdict = ss.deserialize_ertype_permissions(session) |
18 def _add_relation_definition_no_perms(subjtype, rtype, objtype): |
18 def _add_relation_definition_no_perms(subjtype, rtype, objtype): |
19 rschema = fsschema.rschema(rtype) |
19 rschema = fsschema.rschema(rtype) |
20 for query, args in ss.rdef2rql(rschema, subjtype, objtype, groupmap=None): |
20 for query, args in ss.rdef2rql(rschema, subjtype, objtype, groupmap=None): |
21 rql(query, args, ask_confirm=False) |
21 rql(query, args, ask_confirm=False) |
22 checkpoint(ask_confirm=False) |
22 commit(ask_confirm=False) |
23 |
23 |
24 config.disabled_hooks_categories.add('integrity') |
24 config.disabled_hooks_categories.add('integrity') |
25 for rschema in repo.schema.relations(): |
25 for rschema in repo.schema.relations(): |
26 rpermsdict = permsdict.get(rschema.eid, {}) |
26 rpermsdict = permsdict.get(rschema.eid, {}) |
27 for rdef in rschema.rdefs.values(): |
27 for rdef in rschema.rdefs.values(): |