'Return a domain representing a condition on ``self``.'

def determine_domain(self, records, operator, value):

    if isinstance(self.search, basestring):
        return getattr(records, self.search)(operator, value)
    else:
        return self.search(records, operator, value)
