示例#1
0
    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
示例#2
0
    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
示例#3
0
 def accept_input(self, value):
     return is_ip(value)
示例#4
0
 def make_lookup(self, transform):
     if is_ip(transform):
         return ip_reversed(transform) + '.' + self.rbldomain
     else:
         return add_trailing_dot(transform) + self.rbldomain
示例#5
0
 def accept_input(self, value):
     return is_ip(value)
示例#6
0
 def make_lookup(self, transform):
     if is_ip(transform):
         return ip_reversed(transform) + '.' + self.rbldomain
     else:
         return add_trailing_dot(transform) + self.rbldomain