work around a problem in constraint application stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Fri, 16 Oct 2009 18:35:24 +0200
branchstable
changeset 3711 486a29d66f2a
parent 3698 9f652194bfb3
child 3712 4b8d7838d74d
work around a problem in constraint application
devtools/fill.py
--- a/devtools/fill.py	Fri Oct 16 10:59:11 2009 +0200
+++ b/devtools/fill.py	Fri Oct 16 18:35:24 2009 +0200
@@ -397,9 +397,12 @@
             restrictions = ', '.join(c.restriction for c in constraints)
             q += ', %s' % restrictions
             # restrict object eids if possible
-            objeids = select(restrictions, self.cursor)
-        else:
-            objeids = oedict.get(obj, frozenset())
+            # XXX the attempt to restrict below in completely wrong
+            # disabling it for now
+##             objeids = select(restrictions, self.cursor)
+##         else:
+##             objeids = oedict.get(obj, frozenset())
+        objeids = oedict.get(obj, frozenset())
         if subjcard in '?1' or objcard in '?1':
             for subjeid, objeid in used:
                 if subjcard in '?1' and subjeid in subjeids: