diff options
author | Yanko Kaneti <yaneti@declera.com> | 2010-10-12 22:23:07 +0300 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2011-08-28 21:56:16 -0400 |
commit | 6c441e8dee01e0e3f154de6567eef72ffd3221f3 (patch) | |
tree | 995e237d7df06edbb8c1703ab2e840b47e7c71ca | |
parent | a3dffca03588e65aff68cfaed62fc10298852b4f (diff) | |
download | git-bz-6c441e8dee01e0e3f154de6567eef72ffd3221f3.tar.gz |
Add galeon browser support
https://bugzilla.gnome.org/show_bug.cgi?id=632006
-rwxr-xr-x | git-bz | 8 | ||||
-rw-r--r-- | git-bz.txt | 4 |
2 files changed, 10 insertions, 2 deletions
@@ -562,6 +562,13 @@ def get_bugzilla_cookies_ff3(host): return get_cookies_from_sqlite_xulrunner(host, cookies_sqlite, "Firefox") +def get_bugzilla_cookies_galeon(host): + cookies_sqlite = os.path.expanduser('~/.galeon/mozilla/galeon/cookies.sqlite') + if not os.path.exists(cookies_sqlite): + raise CookieError("%s doesn't exist." % cookies_sqlite) + + return get_cookies_from_sqlite_xulrunner(host, cookies_sqlite, "Galeon") + def get_bugzilla_cookies_epy(host): # epiphany-webkit migrated the cookie db to a different location, but the # format is the same @@ -598,6 +605,7 @@ def get_bugzilla_cookies_google_chrome(host): browsers = { 'firefox3' : get_bugzilla_cookies_ff3, 'epiphany' : get_bugzilla_cookies_epy, + 'galeon' : get_bugzilla_cookies_galeon, 'chromium' : get_bugzilla_cookies_chromium, 'google-chrome': get_bugzilla_cookies_google_chrome } @@ -28,7 +28,7 @@ command line without having to go to your web browser. Authentication for git-bz is done by reading the cookies for the Bugzilla host from your web browser. In order to do this, git-bz needs to know how to access the cookies for your web browser; git-bz -currently is able to do this for Firefox, Epiphany, and Chromium on +currently is able to do this for Firefox, Epiphany, Galeon and Chromium on Linux. EXAMPLE SESSION @@ -254,7 +254,7 @@ AUTHENTICATION -------------- In order to use git-bz you need to already be logged into the bug tracker in your web browser, and git-bz reads your browser cookie. Currently only -Firefox 3 and Epiphany are supported, and only on Linux. Patches to +Firefox 3, Epiphany and Galeon are supported, and only on Linux. Patches to add more support and to allow configuring username/password directly per bug tracker accepted. |