~ubuntu-branches/ubuntu/precise/bughelper/precise

« back to all changes in this revision

Viewing changes to bugHelper/utils.py

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-08-23 16:16:51 UTC
  • Revision ID: james.westby@ubuntu.com-20070823161651-38cz13hfuw32aglc
Tags: 0.2
* Include Markus' API changes to make bughelper work with the new
  python-launchpad-bugs API. 
* Also includes the Bughelper Server, which will generate automatic reports
  for Bughelper Queries based on the cluefile data we have.
* Thanks a lot Markus and thanks also Google for making the Summer of Code
  possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        return False
47
47
 
48
48
def remove_obsolete_attachments(path, open_bugs):
49
 
    open_bug_nrs = set(map(lambda a: str(a.nr), open_bugs))
 
49
    open_bug_nrs = set(map(lambda a: str(a.bugnumber), open_bugs))
50
50
    if os.path.exists(path):
51
51
        bugs = set(filter(lambda a: os.path.isdir(os.path.join(path, a)), 
52
52
                          os.listdir(path)))