Sha256: faef105643e1af0330463a47dc7622a3afa909391ed103b45cccd6ee54114a30

Contents?: true

Size: 298 Bytes

Versions: 4

Compression:

Stored size: 298 Bytes

Contents

class Filter:
    def __init__(self, callback):
        self.callback = callback

    def check(self, ip, paramslist, headers):

        def params(key, default = None, l = paramslist):
            if l.has_key(key):
                return l[key][0]
            return default

        return None

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
murder-0.1.2 dist/BitTornado/BT1/Filter.py
murder-0.1.1 dist/BitTornado/BT1/Filter.py
murder-0.1.0 dist/BitTornado/BT1/Filter.py
murder-0.0.0.pre dist/BitTornado/BT1/Filter.py