def accept_input(self, value): if not super(FixedResultDomainProvider, self).accept_input(value): return False if is_ip(value): # dbl is the only known fixed result domain provider and does not allow ip lookups, so we filter this here return False return True
def accept_input(self, value): if not super(FixedResultDomainProvider, self).accept_input(value): return False if is_ip( value ): # dbl is the only known fixed result domain provider and does not allow ip lookups, so we filter this here return False return True
def accept_input(self, value): return is_ip(value)
def make_lookup(self, transform): if is_ip(transform): return ip_reversed(transform) + '.' + self.rbldomain else: return add_trailing_dot(transform) + self.rbldomain