[Erp5-report] r25667 - /erp5/trunk/products/ERP5Wizard/transport/XMLRPCConnection.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Feb 23 16:22:48 CET 2009
Author: ivan
Date: Mon Feb 23 16:22:47 2009
New Revision: 25667
URL: http://svn.erp5.org?rev=25667&view=rev
Log:
Respect API and be consistent when it comes using the same argument name.
Modified:
erp5/trunk/products/ERP5Wizard/transport/XMLRPCConnection.py
Modified: erp5/trunk/products/ERP5Wizard/transport/XMLRPCConnection.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Wizard/transport/XMLRPCConnection.py?rev=25667&r1=25666&r2=25667&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Wizard/transport/XMLRPCConnection.py [utf8] (original)
+++ erp5/trunk/products/ERP5Wizard/transport/XMLRPCConnection.py [utf8] Mon Feb 23 16:22:47 2009
@@ -34,18 +34,19 @@
Holds an XML-RPC connection to a remote XML-RPC server.
"""
- def __init__(self, url, username = None, password = None):
+ def __init__(self, url, user_name = None, password = None):
self.url = url
- self._username = username
+ self._user_name = user_name
self._password = password
def connect(self):
"""Get a handle to a remote connection."""
url = self.url
- if self._username is not None and self._password is not None:
+ if self._user_name is not None and self._password is not None:
# add HTTP Basic Authentication
schema = urlparse(url)
- url = '%s://%s:%s@%s%s' %(schema[0], self._username, self._password,
+ url = '%s://%s:%s@%s%s' %(schema[0], self._user_name, self._password,
schema[1], schema[2])
return xmlrpclib.ServerProxy(url, allow_none=1)
+
More information about the Erp5-report
mailing list