Comment 1 for bug 244519

Revision history for this message
Emanuele Gentili (emgent) wrote :

This Example need python-launchpad-bugs:

import launchpadbugs.connector as Connector
import glob

  # launchpad sending bug ...
  bug = Connector.ConnectBug(method="HTML")
  bug.authentication = glob.glob(os.path.expanduser("~/.mozilla/firefox/*/cookies.sqlite")).pop()
  # opening report file for reading
  reportFile = open(reportFilename, 'r')
  # creating bug
  bug = bug.New(product={'name': 'rapache'},
   summary='[%s] report from %s',
   description=reportFile.read(),
   security_related=True
  )
  # closing report file
  reportFile.close()
  bug.commit(force_changes=True, ignore_lp_errors=False)
  return