Blame bugzilla/bugzilla3.py
|
Packit Service |
4b33e2 |
# bugzilla3.py - a Python interface to Bugzilla 3.x using xmlrpclib.
|
|
Packit Service |
4b33e2 |
#
|
|
Packit Service |
4b33e2 |
# Copyright (C) 2008, 2009 Red Hat Inc.
|
|
Packit Service |
4b33e2 |
# Author: Will Woods <wwoods@redhat.com>
|
|
Packit Service |
4b33e2 |
#
|
|
Packit Service |
4b33e2 |
# This program is free software; you can redistribute it and/or modify it
|
|
Packit Service |
4b33e2 |
# under the terms of the GNU General Public License as published by the
|
|
Packit Service |
4b33e2 |
# Free Software Foundation; either version 2 of the License, or (at your
|
|
Packit Service |
4b33e2 |
# option) any later version. See http://www.gnu.org/copyleft/gpl.html for
|
|
Packit Service |
4b33e2 |
# the full text of the license.
|
|
Packit Service |
4b33e2 |
|
|
Packit Service |
4b33e2 |
from bugzilla.base import BugzillaBase
|
|
Packit Service |
4b33e2 |
|
|
Packit Service |
4b33e2 |
|
|
Packit Service |
4b33e2 |
class Bugzilla3(BugzillaBase):
|
|
Packit Service |
4b33e2 |
bz_ver_major = 3
|
|
Packit Service |
4b33e2 |
bz_ver_minor = 0
|
|
Packit Service |
4b33e2 |
|
|
Packit Service |
4b33e2 |
|
|
Packit Service |
4b33e2 |
class Bugzilla32(Bugzilla3):
|
|
Packit Service |
4b33e2 |
bz_ver_minor = 2
|
|
Packit Service |
4b33e2 |
|
|
Packit Service |
4b33e2 |
|
|
Packit Service |
4b33e2 |
class Bugzilla34(Bugzilla32):
|
|
Packit Service |
4b33e2 |
bz_ver_minor = 4
|
|
Packit Service |
4b33e2 |
|
|
Packit Service |
4b33e2 |
|
|
Packit Service |
4b33e2 |
class Bugzilla36(Bugzilla34):
|
|
Packit Service |
4b33e2 |
bz_ver_minor = 6
|
|
Packit Service |
4b33e2 |
|
|
Packit Service |
4b33e2 |
def _getbugfields(self):
|
|
Packit Service |
4b33e2 |
'''Get the list of valid fields for Bug objects'''
|
|
Packit Service |
4b33e2 |
r = self._proxy.Bug.fields({'include_fields': ['name']})
|
|
Packit Service |
4b33e2 |
return [f['name'] for f in r['fields']]
|