Package: python-debianbts
Version: 1.10
Severity: wishlist

Hello,
currently get_bug_log() returns a list of dictionaries, containing the bodies
and the headers of the email to the bts for the bug of interest. It would be
nice if 'header' values are parsed, and so no more a string containing the
headers, but for example another dictionary with the key/value as header/value.

In the meantime, I'm using email.parser.FeedParser() to have them in a more
manegable format:

    log = debianbts.get_bug_log(number)
    f = email.parser.FeedParser()
    f.feed(log[0]['header'])
    headers = f.close()

and now for headers I can get() the headers I need.

Thanks in advance,
Sandro

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-debianbts depends on:
ii  python                        2.6.7-2    interactive high-level object-orie
ii  python-soappy                 0.12.0-4   SOAP Support for Python
ii  python-support                1.0.14     automated rebuilding support for P

python-debianbts recommends no packages.

python-debianbts suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to