author | sylvain.thenault@logilab.fr |
Fri, 17 Apr 2009 17:55:50 +0200 | |
branch | tls-sprint |
changeset 1399 | 3f408c7a164e |
parent 1398 | 5fe84a5f7035 |
child 1977 | 606923dff11b |
permissions | -rw-r--r-- |
1398
5fe84a5f7035
rename internal entity types to have CW prefix instead of E
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
1 |
change_relation_props('CWAttribute', 'cardinality', 'String', internationalizable=True) |
5fe84a5f7035
rename internal entity types to have CW prefix instead of E
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
2 |
change_relation_props('CWRelation', 'cardinality', 'String', internationalizable=True) |
0 | 3 |
|
1398
5fe84a5f7035
rename internal entity types to have CW prefix instead of E
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
4 |
drop_relation_definition('CWPermission', 'require_state', 'State') |
0 | 5 |
|
6 |
if confirm('cleanup require_permission relation'): |
|
7 |
try: |
|
1399
3f408c7a164e
unify schema sync migration commands with (hopefuly) a clearer name
sylvain.thenault@logilab.fr
parents:
1398
diff
changeset
|
8 |
newrschema = fsschema.rschema('require_permission') |
0 | 9 |
except KeyError: |
10 |
newrschema = None |
|
11 |
for rsubj, robj in schema.rschema('require_permission').rdefs(): |
|
12 |
if newrschema is None or not newrschema.has_rdef(rsubj, robj): |
|
13 |
print 'removing', rsubj, 'require_permission', robj |
|
14 |
drop_relation_definition(rsubj, 'require_permission', robj, ask_confirm=False) |