server/sources/pyrorql.py
changeset 391 42693fe3ef6f
parent 390 739d12586b9d
child 417 828424d2eb3c
equal deleted inserted replaced
390:739d12586b9d 391:42693fe3ef6f
   427         
   427         
   428     def visit_relation(self, node):
   428     def visit_relation(self, node):
   429         try:
   429         try:
   430             if isinstance(node.children[0], Constant):
   430             if isinstance(node.children[0], Constant):
   431                 # simplified rqlst, reintroduce eid relation
   431                 # simplified rqlst, reintroduce eid relation
   432                 restr, lhs = self.process_eid_const(node.children[0])
   432                 try:
       
   433                     restr, lhs = self.process_eid_const(node.children[0])
       
   434                 except UnknownEid:
       
   435                     # can safely skip not relation with an unsupported eid
       
   436                     if node.neged(strict=True):
       
   437                         return
       
   438                     raise
   433             else:
   439             else:
   434                 lhs = node.children[0].accept(self)
   440                 lhs = node.children[0].accept(self)
   435                 restr = None
   441                 restr = None
   436         except UnknownEid:
   442         except UnknownEid:
   437             # can safely skip not relation with an unsupported eid
   443             # can safely skip not relation with an unsupported eid