diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/results-of-XMLRPC-research.txt | 177 | ||||
-rw-r--r-- | tools/testXMLRPC.py | 20 |
2 files changed, 197 insertions, 0 deletions
diff --git a/tools/results-of-XMLRPC-research.txt b/tools/results-of-XMLRPC-research.txt new file mode 100644 index 0000000..7b0eab6 --- /dev/null +++ b/tools/results-of-XMLRPC-research.txt @@ -0,0 +1,177 @@ + +<tr> + <td rowspan="1" valign="top">sarika1187@gmail.com + </td> + <td rowspan="1" valign="top">2010-12-26 00:55:18 PST + </td> + <td> + Flag + </td><td> + </td><td>another-flag?(sarika1187@gmail.com) + </td> + </tr> + +History of https://landfill.bugzilla.org/bugzilla-tip/show_bug.cgi?id=6513 +{ + "bugs": [ + { + "alias": "CracklyVoice", + "id": 6513, + "history": [ + { + "changes": [ + { + "removed": "", + "field_name": "flagtypes.name", + "added": "another-flag?, another-flag2+, blocker+" + } + ], + "who": "joel.reuter@expeditors.com", + "when": <DateTime"20090121T04: 43: 41"at7fcbe3f53a70> + }, + ] + } + ] +} + +Another history +https://landfill.bugzilla.org/bugzilla-tip/show_bug.cgi?id=6196 + + <tr> + <td rowspan="1" valign="top">badevcich + </td> + <td rowspan="1" valign="top">2007-12-13 15:38:22 PST + </td> + + <td> + Flags + </td><td> + </td><td>another-flag?(badevcich) + </td> + </tr> + +{ + "bugs": [ + { + "alias": "GreatScott", + "id": 6196, + "history": [ + { + "changes": [ + { + "removed": "", + "field_name": "flagtypes.name", + "added": "another-flag?(badevcich@gmail.com)" + } + ], + "who": "badevcich@gmail.com", + "when": "<DateTime '20071213T23: 38: 22' at 7fbda0544908>" + } + ] + } + ] +} + + +----------------------- +{ + "version": "1.1", + "result": { + "bugs": [ + { + "history": [ + { + "when": "2011-04-04T00:19:04Z", + "who": "cebbert@redhat.com", + "changes": [ + { + "removed": "", + "added": "xgl-maint@redhat.com", + "field_name": "cc", + "field": "CC" + }, + { + "removed": "kernel", + "added": "xorg-x11-drv-ati", + "field_name": "component", + "field": "Component" + }, + { + "removed": "kernel-maint@redhat.com", + "added": "xgl-maint@redhat.com", + "field_name": "assigned_to", + "field": "AssignedTo" + } + ] + }, + { + "when": "2011-04-12T22:48:22Z", + "who": "mcepl@redhat.com", + "changes": [ + { + "attachment_id": 488889, + "removed": "application/octet-stream", + "added": "text/plain", + "field_name": "attachments.mimetype", + "field": "Attachment mime type" + } + ] + }, + { + "when": "2011-04-13T17:07:04Z", + "who": "mcepl@redhat.com", + "changes": [ + { + "removed": "", + "added": "needinfo?(suckfish@ihug.co.nz)", + "field_name": "flagtypes.name", + "field": "Flags" + } + ] + }, + { + "when": "2011-04-21T12:17:33Z", + "who": "mcepl@redhat.com", + "changes": [ + { + "removed": "xgl-maint@redhat.com", + "added": "jglisse@redhat.com", + "field_name": "assigned_to", + "field": "AssignedTo" + } + ] + }, + { + "when": "2011-04-28T22:53:58Z", + "who": "mcepl@redhat.com", + "changes": [ + { + "attachment_id": 488889, + "removed": "text/plain", + "added": "application/octet-stream", + "field_name": "attachments.mimetype", + "field": "Attachment mime type" + } + ] + }, + { + "when": "2011-04-28T22:59:18Z", + "who": "mcepl@redhat.com", + "changes": [ + { + "attachment_id": 488889, + "removed": "application/octet-stream", + "added": "text/plain", + "field_name": "attachments.mimetype", + "field": "Attachment mime type" + } + ] + } + ], + "id": 692250, + "alias": [] + } + ], + "faults": [] + } +} diff --git a/tools/testXMLRPC.py b/tools/testXMLRPC.py new file mode 100644 index 0000000..9fbaaea --- /dev/null +++ b/tools/testXMLRPC.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +# A tool for investigating bugzilla XML-RPC values + +import xmlrpclib +XMLRPC_URL = "https://landfill.bugzilla.org/bugzilla-tip/xmlrpc.cgi" + +proxy = xmlrpclib.ServerProxy(XMLRPC_URL) +loginDict = { + "login": "ceplma00@yahoo.com", + "password": "kyrios", + "remember": True +} +res = proxy.User.login(loginDict) + +historyDict = { + "ids": [ 6196 ] +} + +res = proxy.Bug.history(historyDict) +print res |