From 14db173670c1fe536c0bf9a8faa88e18ad2dcf96 Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Wed, 2 Apr 2008 21:02:18 +0000 Subject: [PATCH] Python2.5 changed the max levels of inheritence. --- api.py | 6 +----- api_calls.py | 1 + sm.py | 3 ++- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/api.py b/api.py index fe97ae2..b099fb8 100644 --- 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 diff --git a/api_calls.py b/api_calls.py index 19035ae..e99a559 100644 --- a/api_calls.py +++ b/api_calls.py @@ -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 --- 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() -- 2.43.0