Skip to content

Commit c9e2cf7

Browse files
committed
Adjust references to XMLRPC to mention REST
With REST in the mix we need to make these more generic Signed-off-by: Cole Robinson <[email protected]>
1 parent b695cac commit c9e2cf7

8 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
This package provides two bits:
77

8-
* 'bugzilla' python module for talking to a [Bugzilla](https://www.bugzilla.org/) instance over XMLRPC
8+
* 'bugzilla' python module for talking to a [Bugzilla](https://www.bugzilla.org/) instance over XMLRPC or REST
99
* /usr/bin/bugzilla command line tool for performing actions from the command line: create or edit bugs, various queries, etc.
1010

1111
This was originally written specifically for Red Hat's Bugzilla instance

bugzilla/_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _setup_root_parser():
101101

102102
# General bugzilla connection options
103103
p.add_argument('--bugzilla', default=default_url,
104-
help="bugzilla XMLRPC URI. default: %s" % default_url)
104+
help="bugzilla URI. default: %s" % default_url)
105105
p.add_argument("--nosslverify", dest="sslverify",
106106
action="store_false", default=True,
107107
help="Don't error on invalid bugzilla SSL certificate")
@@ -258,7 +258,7 @@ def _parser_add_bz_fields(rootp, command):
258258
# Put this at the end, so it sticks out more
259259
p.add_argument('--field',
260260
metavar="FIELD=VALUE", action="append", dest="fields",
261-
help="Manually specify a bugzilla XMLRPC field. FIELD is "
261+
help="Manually specify a bugzilla API field. FIELD is "
262262
"the raw name used by the bugzilla instance. For example, if your "
263263
"bugzilla instance has a custom field cf_my_field, do:\n"
264264
" --field cf_my_field=VALUE")
@@ -969,7 +969,7 @@ def _do_modify(bz, parser, opt):
969969
# Now for the things we can't blindly batch.
970970
# Being able to prepend/append to whiteboards, which are just
971971
# plain string values, is an old rhbz semantic that we try to maintain
972-
# here. This is a bit weird for traditional bugzilla XMLRPC
972+
# here. This is a bit weird for traditional bugzilla API
973973
log.debug("Adjusting whiteboard fields one by one")
974974
for bug in bz.getbugs(bugid_list):
975975
update_kwargs = {}

examples/bug_autorefresh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@
5151
# Why does this matter? Some scripts are implicitly depending on this
5252
# auto-refresh behavior, because their include_fields specification doesn't
5353
# cover all attributes they actually use. Your script will work, sure, but
54-
# it's likely doing many more XML-RPC calls than needed, possibly 1 per bug.
54+
# it's likely doing many more API calls than needed, possibly 1 per bug.
5555
# So if after upgrading python-bugzilla you start hitting issues, the
5656
# recommendation is to fix your include_fields.

examples/create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Similar to build_query, build_createbug is a helper function that handles
2626
# some bugzilla version incompatibility issues. All it does is return a
2727
# properly formatted dict(), and provide friendly parameter names.
28-
# The argument names map to those accepted by XMLRPC Bug.create:
28+
# The argument names map to those accepted by Bugzilla Bug.create:
2929
# https://bugzilla.readthedocs.io/en/latest/api/core/v1/bug.html#create-bug
3030
#
3131
# The arguments specified here are mandatory, but there are many other

examples/getbug_restapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# By default, if plain Bugzilla(URL) is invoked, the Bugzilla class will
1818
# attempt to determine if XMLRPC or REST API is available, with a preference
19-
# for XMLRPC for back compatability. But you can for use for the REST API
19+
# for XMLRPC for back compatability. But you can use the REST API
2020
# with force_rest=True
2121
bzapi = bugzilla.Bugzilla(URL, force_rest=True)
2222

examples/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# build_query is a helper function that handles some bugzilla version
2121
# incompatibility issues. All it does is return a properly formatted
2222
# dict(), and provide friendly parameter names. The param names map
23-
# to those accepted by XMLRPC Bug.search:
23+
# to those accepted by Bugzilla Bug.search:
2424
# https://bugzilla.readthedocs.io/en/latest/api/core/v1/bug.html#search-bugs
2525
query = bzapi.build_query(
2626
product="Fedora",

examples/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# Similar to build_query, build_update is a helper function that handles
2323
# some bugzilla version incompatibility issues. All it does is return a
2424
# properly formatted dict(), and provide friendly parameter names.
25-
# The param names map to those accepted by XMLRPC Bug.update:
25+
# The param names map to those accepted by Bugzilla Bug.update:
2626
# https://bugzilla.readthedocs.io/en/latest/api/core/v1/bug.html#update-bug
2727
#
2828
# Example bug: https://partner-bugzilla.redhat.com/show_bug.cgi?id=427301

python-bugzilla.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ BuildRequires: python3-pytest
4242

4343
%global _description\
4444
python-bugzilla is a python library for interacting with bugzilla instances\
45-
over XML-RPC.\
45+
over XMLRPC or REST.\
4646

4747
%description %_description
4848

0 commit comments

Comments
 (0)