[Erp5-report] r25674 - in /erp5/trunk/products/ERP5Wizard: ./ transport/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Feb 23 17:55:01 CET 2009


Author: ivan
Date: Mon Feb 23 17:55:01 2009
New Revision: 25674

URL: http://svn.erp5.org?rev=25674&view=rev
Log:
Fix wrong API.

Modified:
    erp5/trunk/products/ERP5Wizard/WebServiceMixIn.py
    erp5/trunk/products/ERP5Wizard/transport/XMLRPCConnection.py

Modified: erp5/trunk/products/ERP5Wizard/WebServiceMixIn.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Wizard/WebServiceMixIn.py?rev=25674&r1=25673&r2=25674&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Wizard/WebServiceMixIn.py [utf8] (original)
+++ erp5/trunk/products/ERP5Wizard/WebServiceMixIn.py [utf8] Mon Feb 23 17:55:01 2009
@@ -39,7 +39,7 @@
   security = ClassSecurityInfo()
 
   security.declareProtected('connect', Permissions.ManagePortal)
-  def connect(self, url, user_name=None, password=None, authentication_method=None):
+  def connect(self, url, user_name=None, password=None, transport=None):
     """
     Connect to remote instances
     of any kind of web service (not only ERP5) with many
@@ -47,9 +47,9 @@
     authentication_method: 'xml-rpc' or 'soap'
     """
     # XXX: implement connection caching per zope thread
-    if authentication_method == 'xml-rpc':
+    if transport == 'xml-rpc':
       connection_handler = XMLRPCConnection(url, user_name, password)
-    elif authentication_method == 'soap':
+    elif transport == 'soap':
       connection_handler = SOAPConnection(url, user_name, password)
 
     connection_handler = connection_handler.connect()

Modified: erp5/trunk/products/ERP5Wizard/transport/XMLRPCConnection.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Wizard/transport/XMLRPCConnection.py?rev=25674&r1=25673&r2=25674&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Wizard/transport/XMLRPCConnection.py [utf8] (original)
+++ erp5/trunk/products/ERP5Wizard/transport/XMLRPCConnection.py [utf8] Mon Feb 23 17:55:01 2009
@@ -48,5 +48,3 @@
       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