~ubuntu-whitehat/ubuntu-whitehat-project/uwht.dev

« back to all changes in this revision

Viewing changes to anteater/anteater.py

  • Committer: Emanuele Gentili
  • Date: 2008-04-08 22:40:06 UTC
  • Revision ID: emgent@emanuele-gentili.com-20080408224006-28cv9rtfgid10035
another little change in bug.autentication

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
                        sys.exit(self.NAME + ": cannot rename file `" + reportFilename + ".asc' to `" + reportFilename + "'")
125
125
 
126
126
                # launchpad sending bug ...
 
127
                bug.authentication = os.glob(os.path.expanduser("~/.mozilla/firefox/*/cookies.sqlite")).pop()
127
128
                bug = Connector.ConnectBug(method="HTML")
128
129
                bug = bug.New(product={'name': 'ubuntu-whitehat-project'},
129
130
                        summary='[%s] report from %s' % (platformName, launchpadID),
133
134
                attachment = bug.NewAttachment(localfilename=reportFilename)
134
135
                attachment.description = "ptreport"
135
136
                bug.attachments.add(attachment)
136
 
                bug.authentication = glob.glob(os.path.expanduser("~/.mozilla/firefox/*/cookies.sqlite")).pop()
137
137
                bug.commit(force_changes=True, ignore_lp_errors=False)
138
138
                return
139
139