Change in vdsm[master]: jsonrpc: xmlrpc protocol detection
nsoffer at redhat.com
nsoffer at redhat.com
Wed Jun 11 10:29:30 UTC 2014
Nir Soffer has posted comments on this change.
Change subject: jsonrpc: xmlrpc protocol detection
......................................................................
Patch Set 6: Code-Review+1
(1 comment)
There is another instance calling optional arguments in positional style. Can be fixed later if we are in a rush.
http://gerrit.ovirt.org/#/c/28507/6/lib/vdsm/utils.py
File lib/vdsm/utils.py:
Line 261: def __init__(self, requestHandler, logRequests=True, allow_none=False,
Line 262: encoding=None):
Line 263: self.logRequests = logRequests
Line 264:
Line 265: SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding)
Method signature is:
def __init__(self, allow_none=False, encoding=None):
So you should call this as:
SimpleXMLRPCDispatcher.__init__(self, allow_none=allow_none,
encoding=encoding)
Yes, I know you copied it from line 592 of SimpleXMLRPCServer.py, Python standard library includes some bad code.
Line 266: ConnectedTCPServer.__init__(self, requestHandler)
Line 267:
Line 268:
Line 269: class IPXMLRPCServer(ConnectedSimpleXmlRPCServer):
--
To view, visit http://gerrit.ovirt.org/28507
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I72819cc0ab5bde0150456263ab7dd1a5e99abfeb
Gerrit-PatchSet: 6
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Piotr Kliczewski <piotr.kliczewski at gmail.com>
Gerrit-Reviewer: Barak Azulay <bazulay at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali at redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski at gmail.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi at redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
More information about the vdsm-patches
mailing list