def get_client(self, name=None, agent=None):
        res = []
        if not name:
            return res
        cli = name
        filemap = self.status('c:{0}\n'.format(cli))
        for line in filemap:
            if not re.match('^{0}\t'.format(cli), line):
                continue
            # self._logger('debug', "line: '{0}'".format(line))
            regex = re.compile(r'\s*(\S+)\s+\d\s+(\S)\s+(.+)')
            match = regex.search(line)
            if match.group(3) == "0" or match.group(2) not in ['i', 'c', 'C']:
                continue
            backups = match.group(3).split('\t')
            for backup in backups:
                bkp = {}
                spl = backup.split()
                bkp['number'] = spl[0]
                bkp['deletable'] = (spl[1] == '1')
                bkp['date'] = int(spl[2])
                log = self.get_backup_logs(spl[0], name)
                bkp['encrypted'] = log['encrypted']
                bkp['received'] = log['received']
                bkp['size'] = log['totsize']
                bkp['end'] = log['end']
                res.append(bkp)
        # Here we need to reverse the array so the backups are sorted by date ASC
        res.reverse()
        return res
Log the current user out of your Django site.
dataset/ETHPy150Open ziirish/burp-ui/burpui/misc/backend/burp1.py/Burp.get_client--crossover with--dataset/ETHPy150Open ericholscher/django-test-utils/test_utils/utils/twill_runner.py/_EasyTwillBrowser.logout