### $Id$
### $URL$
-import xmlrpclib
+import os, time
from types import *
+from types import StringTypes
+import traceback
import textwrap
-import os
-import time
-import pprint
+import xmlrpclib
-from types import StringTypes
from sfa.util.faults import *
from sfa.util.parameter import Parameter, Mixed, python_type, xmlrpc_type
-from sfa.util.auth import Auth
+from sfa.trust.auth import Auth
from sfa.util.debug import profile, log
# we inherit object because we use new-style classes for legacy methods
result = self.call(*args, **kwds)
runtime = time.time() - start
- if self.api.config.GENI_API_DEBUG or hasattr(self, 'message'):
+ if self.api.config.SFA_API_DEBUG or hasattr(self, 'message'):
# XX print to some log file
# print >> log, "some output"
pass
fault.faultString = caller + ": " + self.name + ": " + fault.faultString
runtime = time.time() - start
- if self.api.config.GENI_API_DEBUG:
- # XX print to some log file
- #print >> log, "Some debugging output"
- pass
+ if self.api.config.SFA_API_DEBUG:
+ traceback.print_exc()
raise fault