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
This Example need python- launchpad- bugs:
import launchpadbugs. connector as Connector
import glob
# launchpad sending bug ... ConnectBug( method= "HTML") ation = glob.glob( os.path. expanduser( "~/.mozilla/ firefox/ */cookies. sqlite" )).pop( ) name, 'r') product= {'name' : 'rapache'}, reportFile. read(), related= True close() force_changes= True, ignore_ lp_errors= False)
bug = Connector.
bug.authentic
# opening report file for reading
reportFile = open(reportFile
# creating bug
bug = bug.New(
summary='[%s] report from %s',
description=
security_
)
# closing report file
reportFile.
bug.commit(
return