devtools/repotest.py
changeset 599 9ef680acd92a
parent 0 b97547f5f1fa
child 600 1fbf11a876a8
--- a/devtools/repotest.py	Wed Feb 11 17:44:08 2009 +0100
+++ b/devtools/repotest.py	Wed Feb 11 17:54:55 2009 +0100
@@ -249,7 +249,8 @@
 _orig_select_principal = rqlannotation._select_principal
 
 def _select_principal(scope, relations):
-    return _orig_select_principal(scope, sorted(relations, key=lambda x: x.r_type))
+    return _orig_select_principal(scope, relations,
+                                  _sort=lambda rels: sorted(rels, key=lambda x: x.r_type))
 
 try:
     from cubicweb.server.msplanner import PartPlanInformation