Entry to report bugs from the help menu would be nice.

Bug #244519 reported by TAC one on 2008-07-01
Affects Status Importance Assigned to Milestone
Remote Apache Management tool
Emanuele Gentili

Bug Description

Add a menu entry in the main menu which allows the user to report bugs in launchpad.

Emgent has some code to share. Please attach a proof of concept here.

Also we shuold investigate the additional dependencies this feature would require and make sure to find a way to make them optional (we don't want to depend on apport or similar packages, but only suggest their use if they're present on the user's system)

TAC one (tacone) on 2008-07-01
Changed in rapache:
assignee: nobody → emgent
importance: Undecided → Low
milestone: none → stage0
status: New → Confirmed
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',
  # closing report file
  bug.commit(force_changes=True, ignore_lp_errors=False)

TAC one (tacone) wrote :

Grabbing user cookie is not acceptable, even if it seems to be the practice of other projects.
We also could look to Leonov code. http://launchpad.net/leonov it asks you for launchpad login.

Another note: this code brings a dependancy with it. We shuold wrap everything with try/except and hide the menu entry if the dependency is not there.

TAC one (tacone) wrote :

- We really need to forward the user's /etc/apache2 (asking for permission first) as a tarball.
- we shuold pay attention not embed private information in the bug msg body, as comments can't be deleted in launchpad, right now. Attachments *can* be deleted.

How to attach things.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers