rqlrewrite.py
branchstable
changeset 8147 335b358c7017
parent 8112 d3f1e28d5bdb
child 8264 a4b009ba92ce
equal deleted inserted replaced
8146:67b9b273b70d 8147:335b358c7017
   293                 except Unsupported:
   293                 except Unsupported:
   294                     # some solutions have been lost, can't apply this rql expr
   294                     # some solutions have been lost, can't apply this rql expr
   295                     if parent is None:
   295                     if parent is None:
   296                         self.current_statement().remove_node(new, undefine=True)
   296                         self.current_statement().remove_node(new, undefine=True)
   297                     else:
   297                     else:
   298                         parent.parent.replace(or_, or_.children[0])
   298                         grandpa.replace(or_, parent)
   299                         self._cleanup_inserted(new)
   299                         self._cleanup_inserted(new)
   300                     raise
   300                     raise
   301                 else:
   301                 else:
   302                     with tempattr(self, '_insert_scope', new):
   302                     with tempattr(self, '_insert_scope', new):
   303                         self.insert_pending()
   303                         self.insert_pending()