示例#1
0
    def __init__(self, session, *args, **kwargs):
        LookupHandler.__init__(self, session, *args, **kwargs)
        Search.__init__(self, session)

        global GLOBAL_KEY_CACHE
        self.key_cache = GLOBAL_KEY_CACHE
        _PRUNE_GLOBAL_KEY_CACHE()
示例#2
0
    def __init__(self, session, *args, **kwargs):
        LookupHandler.__init__(self, session, *args, **kwargs)
        Search.__init__(self, session)

        global GLOBAL_KEY_CACHE
        self.key_cache = GLOBAL_KEY_CACHE
        _PRUNE_GLOBAL_KEY_CACHE()
示例#3
0
    def __init__(self, session, *args, **kwargs):
        LookupHandler.__init__(self, session, *args, **kwargs)
        Search.__init__(self, session)

        global GLOBAL_KEY_CACHE
        if len(GLOBAL_KEY_CACHE) > 50:
            GLOBAL_KEY_CACHE = {}
        self.key_cache = GLOBAL_KEY_CACHE
示例#4
0
    def __init__(self, session, *args, **kwargs):
        LookupHandler.__init__(self, session, *args, **kwargs)
        Search.__init__(self, session)

        global GLOBAL_KEY_CACHE
        if len(GLOBAL_KEY_CACHE) > 50:
            GLOBAL_KEY_CACHE = {}
        self.key_cache = GLOBAL_KEY_CACHE
示例#5
0
 def __init__(self, *args, **kwargs):
     LookupHandler.__init__(self, *args, **kwargs)
     if not DNS:
         return
     DNS.ParseResolvConf()
     self.req = DNS.Request(qtype="TXT")
示例#6
0
文件: wkd.py 项目: trev-dev/Mailpile
 def __init__(self, *args, **kwargs):
     LookupHandler.__init__(self, *args, **kwargs)
     self.key_cache = {}
示例#7
0
文件: dnspka.py 项目: 4myPAL/Mailpile
 def __init__(self, *args, **kwargs):
     LookupHandler.__init__(self, *args, **kwargs)
     if not DNS:
         return
     DNS.ParseResolvConf()
     self.req = DNS.Request(qtype="TXT")
示例#8
0
文件: wkd.py 项目: mailpile/Mailpile
 def __init__(self, *args, **kwargs):
     LookupHandler.__init__(self, *args, **kwargs)
     self.key_cache = { }
示例#9
0
 def __init__(self, session):
     Search.__init__(self, session)
     LookupHandler.__init__(self, session)