Commit bedf22c0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

simple implementation of SOAPConnection, that does not work with restricted environment for now.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39291 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aff6c680
......@@ -26,9 +26,25 @@
#
##############################################################################
import SOAPpy
class SOAPConnection:
"""
Holds a SOAP connection
"""
pass
__allow_access_to_unprotected_subobjects__ = 1
def __init__(self, url, user_name=None, password=None):
self.url = url
self._user_name = user_name
self._password = password
def connect(self):
"""Get a handle to a remote connection."""
# TODO:
# * transport (http) level authentication using self._user_name and
# self._password.
# * support calling from restricted environment.
url = self.url
proxy = SOAPpy.SOAPProxy(url)
return proxy
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment