devtools/repotest.py
branchstable
changeset 6794 140d42b41b31
parent 6758 28b11ecf319b
child 6804 4262d0d6abcb
--- a/devtools/repotest.py	Fri Jan 07 15:21:56 2011 +0100
+++ b/devtools/repotest.py	Fri Jan 07 18:51:47 2011 +0100
@@ -378,7 +378,7 @@
 def _merge_input_maps(*args, **kwargs):
     return sorted(_orig_merge_input_maps(*args, **kwargs))
 
-def _choose_term(self, sourceterms):
+def _choose_term(self, source, sourceterms):
     # predictable order for test purpose
     def get_key(x):
         try:
@@ -391,7 +391,7 @@
             except AttributeError:
                 # const
                 return x.value
-    return _orig_choose_term(self, DumbOrderedDict2(sourceterms, get_key))
+    return _orig_choose_term(self, source, DumbOrderedDict2(sourceterms, get_key))
 
 from cubicweb.server.sources.pyrorql import PyroRQLSource
 _orig_syntax_tree_search = PyroRQLSource.syntax_tree_search