# HG changeset patch # User Sylvain Thénault # Date 1250859875 -7200 # Node ID 5e2239672e16b3198e77bb99db4fd16ade70b844 # Parent 6d833a4405752383701629d268bf80d2262fc3c9 [migraction] use role instead of x diff -r 6d833a440575 -r 5e2239672e16 server/migractions.py --- a/server/migractions.py Fri Aug 21 15:03:56 2009 +0200 +++ b/server/migractions.py Fri Aug 21 15:04:35 2009 +0200 @@ -415,12 +415,12 @@ {'x': str(repoeschema), 'y': str(espschema)}) self.rqlexecall(ss.updateeschema2rql(eschema), ask_confirm=self.verbosity >= 2) - for rschema, targettypes, x in eschema.relation_definitions(True): - if x == 'subject': + for rschema, targettypes, role in eschema.relation_definitions(True): + if role == 'subject': if not rschema in repoeschema.subject_relations(): continue subjtypes, objtypes = [etype], targettypes - else: # x == 'object' + else: # role == 'object' if not rschema in repoeschema.object_relations(): continue subjtypes, objtypes = targettypes, [etype]