misc/migration/3.14.0_Any.py
changeset 8483 4ba11607d84a
parent 8079 0f1126b9038e
child 10589 7c23b7de2b8d
equal deleted inserted replaced
8469:82272decfa99 8483:4ba11607d84a
     7                    'X cstrtype XT, XT name IN ("RQLUniqueConstraint","RQLConstraint","RQLVocabularyConstraint"),'
     7                    'X cstrtype XT, XT name IN ("RQLUniqueConstraint","RQLConstraint","RQLVocabularyConstraint"),'
     8                    'NOT X value ~= ";%"').entities():
     8                    'NOT X value ~= ";%"').entities():
     9     expression = rqlcstr.value
     9     expression = rqlcstr.value
    10     mainvars = guess_rrqlexpr_mainvars(expression)
    10     mainvars = guess_rrqlexpr_mainvars(expression)
    11     yamscstr = CONSTRAINTS[rqlcstr.type](expression, mainvars)
    11     yamscstr = CONSTRAINTS[rqlcstr.type](expression, mainvars)
    12     rqlcstr.set_attributes(value=yamscstr.serialize())
    12     rqlcstr.cw_set(value=yamscstr.serialize())
    13     print 'updated', rqlcstr.type, rqlcstr.value.strip()
    13     print 'updated', rqlcstr.type, rqlcstr.value.strip()