def insertIndent():
            if self.useTabs:
                cursor.insertText('\t')
            else:  # indent to integer count of indents from line start
                charsToInsert = self.width - (len(self._qpart.textBeforeCursor()) % self.width)
                cursor.insertText(' ' * charsToInsert)
def parse_record(self, metadata, line):
        factors = line.split('|')
        if len(factors) < 7:
            return

        registry, cc, type_, start, value, dete, status = factors[:7]
        if type_ not in ('ipv4', 'ipv6'):
            return

        return Record(metadata, start, type_, value, cc)