migration/1.5.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 21 Oct 2010 18:01:10 +0200
changeset 716 448d9fb3ae71
parent 329 e0d5e712df12
permissions -rw-r--r--
#1347584: when used as a tracker extension, should grant staff group the right to add/update repositories

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')