rset.py
branchstable
changeset 5667 04cbd80fd5dc
parent 5532 1fa6e09605a5
child 5671 3a2063b752f3
equal deleted inserted replaced
5666:58d6c2c96500 5667:04cbd80fd5dc
   598             return None, None
   598             return None, None
   599         rel = myvar.main_relation()
   599         rel = myvar.main_relation()
   600         if rel is not None:
   600         if rel is not None:
   601             index = rel.children[0].root_selection_index()
   601             index = rel.children[0].root_selection_index()
   602             if index is not None and self.rows[row][index]:
   602             if index is not None and self.rows[row][index]:
   603                 return self.get_entity(row, index), rel.r_type
   603                 try:
       
   604                     entity = self.get_entity(row, index)
       
   605                     return entity, rel.r_type
       
   606                 except NotAnEntity, exc:
       
   607                     return None, None
   604         return None, None
   608         return None, None
   605 
   609 
   606     @cached
   610     @cached
   607     def searched_text(self):
   611     def searched_text(self):
   608         """returns the searched text in case of full-text search
   612         """returns the searched text in case of full-text search