misc/migration/bootstrapmigration_repository.py
changeset 4109 841bc459d5e8
parent 4042 f85a4c846aad
child 4252 6c4f109c2b03
equal deleted inserted replaced
4108:f9c51250480a 4109:841bc459d5e8
    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():