def alter_search(self, search):
    if (not self.values.get('option')):
        return
    expr = self.get_option('expression')
    from pyasm.biz import ExpressionParser
    parser = ExpressionParser()
    expr_search = parser.eval(expr)
    search.add_relationship_search_filter(expr_search)
def alter_search(self, search):
    if (not self.values.get('option')):
        return
    expr = self.get_option('expression')
    from pyasm.biz import ExpressionParser
    parser = ExpressionParser()
    expr_search = parser.eval(expr)
    search.add_relationship_search_filter(expr_search)