forked from python-bugzilla/python-bugzilla
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbugzilla3.py
More file actions
34 lines (24 loc) · 947 Bytes
/
bugzilla3.py
File metadata and controls
34 lines (24 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# bugzilla3.py - a Python interface to Bugzilla 3.x using xmlrpclib.
#
# Copyright (C) 2008, 2009 Red Hat Inc.
# Author: Will Woods <[email protected]>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version. See http://www.gnu.org/copyleft/gpl.html for
# the full text of the license.
from .base import BugzillaBase
class Bugzilla3(BugzillaBase):
bz_ver_major = 3
bz_ver_minor = 0
class Bugzilla32(Bugzilla3):
bz_ver_minor = 2
class Bugzilla34(Bugzilla32):
bz_ver_minor = 4
class Bugzilla36(Bugzilla34):
bz_ver_minor = 6
def _getbugfields(self):
'''Get the list of valid fields for Bug objects'''
r = self._proxy.Bug.fields({'include_fields': ['name']})
return [f['name'] for f in r['fields']]