# HG changeset patch # User Alexandre Fayolle # Date 1255710924 -7200 # Node ID 486a29d66f2ac3fde8005e48b503882da00de9ab # Parent 9f652194bfb34347878c52038fc5e43c316f63a5 work around a problem in constraint application diff -r 9f652194bfb3 -r 486a29d66f2a 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: