equal
deleted
inserted
replaced
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() |