Show More
@@ -328,6 +328,9 b" configitem('bugzilla', 'bzdir'," | |||||
328 | configitem('bugzilla', 'bzemail', |
|
328 | configitem('bugzilla', 'bzemail', | |
329 | default=None, |
|
329 | default=None, | |
330 | ) |
|
330 | ) | |
|
331 | configitem('bugzilla', 'bzurl', | |||
|
332 | default='http://localhost/bugzilla/', | |||
|
333 | ) | |||
331 |
|
334 | |||
332 | class bzaccess(object): |
|
335 | class bzaccess(object): | |
333 | '''Base class for access to Bugzilla.''' |
|
336 | '''Base class for access to Bugzilla.''' | |
@@ -649,8 +652,7 b' class bzxmlrpc(bzaccess):' | |||||
649 | def __init__(self, ui): |
|
652 | def __init__(self, ui): | |
650 | bzaccess.__init__(self, ui) |
|
653 | bzaccess.__init__(self, ui) | |
651 |
|
654 | |||
652 |
bzweb = self.ui.config('bugzilla', 'bzurl' |
|
655 | bzweb = self.ui.config('bugzilla', 'bzurl') | |
653 | 'http://localhost/bugzilla/') |
|
|||
654 | bzweb = bzweb.rstrip("/") + "/xmlrpc.cgi" |
|
656 | bzweb = bzweb.rstrip("/") + "/xmlrpc.cgi" | |
655 |
|
657 | |||
656 | user = self.ui.config('bugzilla', 'user', 'bugs') |
|
658 | user = self.ui.config('bugzilla', 'user', 'bugs') | |
@@ -810,8 +812,7 b' class bzrestapi(bzaccess):' | |||||
810 | """ |
|
812 | """ | |
811 | def __init__(self, ui): |
|
813 | def __init__(self, ui): | |
812 | bzaccess.__init__(self, ui) |
|
814 | bzaccess.__init__(self, ui) | |
813 |
bz = self.ui.config('bugzilla', 'bzurl' |
|
815 | bz = self.ui.config('bugzilla', 'bzurl') | |
814 | 'http://localhost/bugzilla/') |
|
|||
815 | self.bzroot = '/'.join([bz, 'rest']) |
|
816 | self.bzroot = '/'.join([bz, 'rest']) | |
816 | self.apikey = self.ui.config('bugzilla', 'apikey') |
|
817 | self.apikey = self.ui.config('bugzilla', 'apikey') | |
817 | self.user = self.ui.config('bugzilla', 'user', 'bugs') |
|
818 | self.user = self.ui.config('bugzilla', 'user', 'bugs') |
General Comments 0
You need to be logged in to leave comments.
Login now