misc/migration/3.11.0_Any.py
author Rémi Cardona <remi.cardona@logilab.fr>
Fri, 16 Oct 2015 11:15:50 +0200
changeset 10902 41bd01ebebb4
parent 9450 af4b93bc38a5
permissions -rw-r--r--
[web] Add a <label> around choices on CheckBox and Radio form widgets Allows clicking directly on the text rather than only on the widget. Closes #7672774.

from datetime import datetime

for rtype in ('cw_support', 'cw_dont_cross', 'cw_may_cross'):
    drop_relation_type(rtype)

add_entity_type('CWSourceSchemaConfig')

if not 'url' in schema['CWSource'].subjrels:
    add_attribute('CWSource', 'url')
    add_attribute('CWSource', 'parser')
    add_attribute('CWSource', 'latest_retrieval')