removed unused code (R.I.P)
[sfa.git] / sfa / server / modpythonapi / BaseClient.py
diff --git a/sfa/server/modpythonapi/BaseClient.py b/sfa/server/modpythonapi/BaseClient.py
deleted file mode 100755 (executable)
index 56d7286..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-import xmlrpclib
-
-from ApiExceptionCodes import *
-
-class ExceptionUnmarshaller(xmlrpclib.Unmarshaller):
-    def close(self):
-        try:
-            return xmlrpclib.Unmarshaller.close(self)
-        except xmlrpclib.Fault, e:
-            # if the server tagged some traceback info onto the end of the
-            # exception text, then print it out on the client.
-
-            if "\nFAULT_TRACEBACK:" in e.faultString:
-                parts = e.faultString.split("\nFAULT_TRACEBACK:")
-                e.faultString = parts[0]
-                if BaseClient.VerboseExceptions:
-                    print "\n|Server Traceback:", "\n|".join(parts[1].split("\n"))
-
-            raise e
-
-class ExceptionReportingTransport(xmlrpclib.Transport):
-    def make_connection(self, host):
-        import httplib
-        if host.startswith("https:"):
-           return httplib.HTTPS(host)
-        else:
-           return httplib.HTTP(host)
-
-    def getparser(self):
-        unmarshaller = ExceptionUnmarshaller()
-        parser = xmlrpclib.ExpatParser(unmarshaller)
-        return parser, unmarshaller
-
-class BaseClient():
-    
-    VerboseExceptions = False
-
-    def __init__(self, url):
-        self.url = url
-        self.server = xmlrpclib.ServerProxy(self.url, ExceptionReportingTransport())
-
-    def noop(self, value):
-        return self.server.noop(value)
-
-    @staticmethod
-    def EnableVerboseExceptions(x=True):
-        BaseClient.VerboseExceptions = x
-