コード例 #1
0
    def parseLines(self, lines):
        """
        Work around a bug in the base implementation that causes parsing of TXT RRs with
        spaces in the RDATA to be broken into multiple fragments and for quotes around the
        data to not be removed.
        """
        for line in lines:
            if line[3] == "TXT":
                line[4] = " ".join(line[4:])[1:-1]
                del line[5:]

        BindAuthority.parseLines(self, lines)
コード例 #2
0
ファイル: utils.py プロジェクト: runt18/ccs-calendarserver
    def parseLines(self, lines):
        """
        Work around a bug in the base implementation that causes parsing of TXT RRs with
        spaces in the RDATA to be broken into multiple fragments and for quotes around the
        data to not be removed.
        """
        for line in lines:
            if line[3] == "TXT":
                line[4] = " ".join(line[4:])[1:-1]
                del line[5:]

        BindAuthority.parseLines(self, lines)
コード例 #3
0
ファイル: utils.py プロジェクト: runt18/ccs-calendarserver
 def _lookup(self, name, cls, type, timeout=None):
     log.debug(
         "DNS FakeBindAuthority: lookup: {name} {cls} {type}",
         name=name,
         cls=cls,
         type=type,
     )
     result = yield BindAuthority._lookup(self, name, cls, type, timeout)
     log.debug(
         "DNS FakeBindAuthority: lookup results: {name} {cls} {type}\n{r}",
         name=name,
         cls=cls,
         type=type,
         r=result[0],
     )
     returnValue(result)
コード例 #4
0
ファイル: utils.py プロジェクト: eventable/CalendarServer
 def _lookup(self, name, cls, type, timeout=None):
     log.debug(
         "DNS FakeBindAuthority: lookup: {name} {cls} {type}",
         name=name,
         cls=cls,
         type=type,
     )
     result = yield BindAuthority._lookup(self, name, cls, type, timeout)
     log.debug(
         "DNS FakeBindAuthority: lookup results: {name} {cls} {type}\n{r}",
         name=name,
         cls=cls,
         type=type,
         r=result[0],
     )
     returnValue(result)
コード例 #5
0
 def _lookup(self, name, cls, type, timeout=None):
     log.debug("DNS FakeBindAuthority: lookup: %s %s %s" % (name, cls, type,))
     result = yield BindAuthority._lookup(self, name, cls, type, timeout)
     log.debug("DNS FakeBindAuthority: lookup results: %s %s %s\n%s" % (name, cls, type, result[0]))
     returnValue(result)