initial checkin of component code
authorTony Mack <tmack@cs.princeton.edu>
Thu, 5 Nov 2009 01:19:10 +0000 (01:19 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Thu, 5 Nov 2009 01:19:10 +0000 (01:19 +0000)
component/__init__.py [new file with mode: 0644]
component/methods/__init__.py [new file with mode: 0644]
component/plc/__init__.py [new file with mode: 0644]
component/plc/api.py [new file with mode: 0644]

diff --git a/component/__init__.py b/component/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/component/methods/__init__.py b/component/methods/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/component/plc/__init__.py b/component/plc/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/component/plc/api.py b/component/plc/api.py
new file mode 100644 (file)
index 0000000..8fa19d9
--- /dev/null
@@ -0,0 +1,40 @@
+#
+# Geniwrapper XML-RPC and SOAP interfaces
+#
+### $Id: api.py 15596 2009-10-31 21:42:05Z anil $
+### $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfa/plc/api.py $
+#
+
+import sys
+import os
+import traceback
+import string
+import xmlrpclib
+
+from sfa.trust.auth import Auth
+from sfa.util.config import *
+from sfa.util.faults import *
+from sfa.util.debug import *
+from sfa.trust.rights import *
+from sfa.trust.credential import *
+from sfa.trust.certificate import *
+from sfa.util.misc import *
+from sfa.util.sfalogging import *
+from sfa.util.api import *
+
+
+class ComponentAPI(BaseAPI):
+
+    
+    def __init__(self, config = "/etc/sfa/sfa_config", encoding = "utf-8", methods='sfacomponent.methods',
+                 peer_cert = None, interface = None, key_file = None, cert_file = None):
+
+        BaseAPI.__init__(self, config=config, encoding=encoding, methods=methods, peer_cert=peer_cert, 
+                         interface, key_file, cert_file) 
+        self.encoding = encoding
+
+        # Better just be documenting the API
+        if config is None:
+            return
+
+