equal
deleted
inserted
replaced
|
1 from __future__ import print_function |
|
2 |
1 config['rql-cache-size'] = config['rql-cache-size'] * 10 |
3 config['rql-cache-size'] = config['rql-cache-size'] * 10 |
2 |
4 |
3 add_entity_type('CWDataImport') |
5 add_entity_type('CWDataImport') |
4 |
6 |
5 from cubicweb.schema import CONSTRAINTS, guess_rrqlexpr_mainvars |
7 from cubicweb.schema import CONSTRAINTS, guess_rrqlexpr_mainvars |
8 'NOT X value ~= ";%"').entities(): |
10 'NOT X value ~= ";%"').entities(): |
9 expression = rqlcstr.value |
11 expression = rqlcstr.value |
10 mainvars = guess_rrqlexpr_mainvars(expression) |
12 mainvars = guess_rrqlexpr_mainvars(expression) |
11 yamscstr = CONSTRAINTS[rqlcstr.type](expression, mainvars) |
13 yamscstr = CONSTRAINTS[rqlcstr.type](expression, mainvars) |
12 rqlcstr.cw_set(value=yamscstr.serialize()) |
14 rqlcstr.cw_set(value=yamscstr.serialize()) |
13 print 'updated', rqlcstr.type, rqlcstr.value.strip() |
15 print('updated', rqlcstr.type, rqlcstr.value.strip()) |