Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed all instances of bugz.bugzilla.* to bugz.*

This may have resulted from a change in pybugz since the last update of
this project, but whatever the reason this makes everything work for me.
  • Loading branch information...
commit 338f09280c0e24d7b130c2607ca834dd2ea4bd49 1 parent eceeaca
@glittershark authored
Showing with 8 additions and 8 deletions.
  1. +1 −1  hookscripts.py
  2. +5 −5 utils.py
  3. +2 −2 utilscripts.py
View
2  hookscripts.py
@@ -122,7 +122,7 @@ def bz_init(sBZUrl, sBZUser, sBZPasswd):
# get data from siteconfig
(sSiteUser, sSitePasswd) = bz_auth_from_config(siteconfig, sRepo)
- oBZ = bugz.bugzilla.Bugz(sBZUrl, user=sBZUser, password=sBZPasswd)
+ oBZ = bugz.Bugz(sBZUrl, user=sBZUser, password=sBZPasswd)
def auth_error(*args):
raise ValueError("no Bugzilla auth found!")
View
10 utils.py
@@ -7,7 +7,7 @@
import os
import sys
import subprocess
-import bugz.bugzilla
+import bugz
sNoCommitRev = "0000000000000000000000000000000000000000"
@@ -38,7 +38,7 @@ def execute(asCommand, bSplitLines=False, bIgnoreErrors=False):
def init_bugzilla(sBZUrl, sBZUser, sBZPasswd):
"""
- initializes and returns a bugz.bugzilla.Bugz instance.
+ initializes and returns a bugz.Bugz instance.
This may be overridden in custom hook scripts in order to expand auth
support.
@@ -46,7 +46,7 @@ def init_bugzilla(sBZUrl, sBZUser, sBZPasswd):
if sBZUrl is None:
raise ValueError("No Bugzilla URL specified")
- oBZ = bugz.bugzilla.Bugz(sBZUrl, user=sBZUser, password=sBZPasswd)
+ oBZ = bugz.Bugz(sBZUrl, user=sBZUser, password=sBZPasswd)
return oBZ
@@ -106,14 +106,14 @@ def post_to_bugzilla(iBugId, sComment, sBZUrl, sBZUser, sBZPasswd):
if sBZUrl is None:
raise ValueError("No Bugzilla URL specified")
- oBZ = bugz.bugzilla.Bugz(sBZUrl, user=sBZUser, password=sBZPasswd)
+ oBZ = bugz.Bugz(sBZUrl, user=sBZUser, password=sBZPasswd)
oBZ.modify(iBugId, comment=sComment)
def get_bug_status(oBugz, iBugId):
"""
- given the bugz.bugzilla.Bugz instance and the bug id, returns the bug
+ given the bugz.Bugz instance and the bug id, returns the bug
status.
"""
oBug = oBugz.get(iBugId)
View
4 utilscripts.py
@@ -6,7 +6,7 @@
import os
import sys
-import bugz.bugzilla
+import bugz
import getpass
def generate_cookiefile():
@@ -27,7 +27,7 @@ def generate_cookiefile():
if sUsername == "":
sUsername = sLogin
- oBZ = bugz.bugzilla.Bugz(sBZUrl, user=sUsername, password=sPassword)
+ oBZ = bugz.Bugz(sBZUrl, user=sUsername, password=sPassword)
oBZ.auth()

1 comment on commit 338f092

@Omnifarious

The change to pybugz is more extensive than this. Basically pybugz abandon it's old way of working with Bugzilla in favor of a new way that uses XMLRPC (and is more stable and supported by upstream).

gitzilla was dependent on the old way, and dependent on some quirks regarding how it operated.

Please sign in to comment.
Something went wrong with that request. Please try again.