Python2.5 changed the max levels of inheritence.
authorFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Wed, 2 Apr 2008 21:02:18 +0000 (21:02 +0000)
committerFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Wed, 2 Apr 2008 21:02:18 +0000 (21:02 +0000)
api.py
api_calls.py
sm.py

diff --git a/api.py b/api.py
index fe97ae2..b099fb8 100644 (file)
--- a/api.py
+++ b/api.py
@@ -24,15 +24,11 @@ import logger
 import sliver_vs
 import ticket
 import tools
-
+from api_calls import *
 
 API_SERVER_PORT = 812
 UNIX_ADDR = '/tmp/sliver_mgr.api'
 
-deliver_ticket = None  # set in sm.py:start()
-
-from api_calls import *
-
 class APIRequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHandler):
     # overriding _dispatch to achieve this effect is officially deprecated,
     # but I can't figure out how to get access to .request without
index 19035ae..e99a559 100644 (file)
@@ -39,6 +39,7 @@ except: import logger as sliver_vs
 import ticket as ticket_module
 import tools
 
+deliver_ticket = None  # set in sm.py:start()
 
 api_method_dict = {}
 nargs_dict = {}
diff --git a/sm.py b/sm.py
index abbcaec..a050ded 100644 (file)
--- a/sm.py
+++ b/sm.py
@@ -13,6 +13,7 @@ try: from bwlimit import bwmin, bwmax
 except ImportError: bwmin, bwmax = 8, 1000*1000*1000
 import accounts
 import api
+import api_calls
 import database
 import delegate
 import logger
@@ -142,5 +143,5 @@ def start(options, config):
     accounts.register_class(delegate.Delegate)
     accounts.Startingup = options.startup
     database.start()
-    api.deliver_ticket = deliver_ticket
+    api_calls.deliver_ticket = deliver_ticket
     api.start()