migration/1.5.0_Any.py
author David Douard <david.douard@logilab.fr>
Sun, 26 Oct 2014 18:28:22 +0100
changeset 1766 42e60f760703
parent 329 e0d5e712df12
permissions -rw-r--r--
[checkers] rationalize the way project path is configured in checkers Generalize the use of the 'project_path' (mandatry) option in checkers

if 'nosylist' in config.cubes():
    add_relation_definition('CWUser', 'interested_in', 'ProjectEnvironment')
    add_relation_definition('CWUser', 'interested_in', 'TestConfig')
    add_relation_definition('TestConfig', 'nosy_list', 'CWUser')
    add_relation_definition('ProjectEnvironment', 'nosy_list', 'CWUser')
    add_relation_definition('TestExecution', 'nosy_list', 'CWUser')

sync_schema_props_perms(('TestConfig', 'name', 'String'))
sync_schema_props_perms('use_environment')