def Cleanup(): import __main__ from spell.lib.drivermgr import DriverManager from spell.lib.registry import REGISTRY from server.ui.cmdline import ClientIF DriverManager.instance().cleanup(shutdown=True) for ifc in REGISTRY.interfaces(): REGISTRY.remove(ifc) if __main__.__dict__.has_key(ifc): __main__.__dict__.pop(ifc) if 'CIF' in REGISTRY.interfaces(): ClientIF.cleanup()
def Cleanup(): import __main__ from spell.lib.drivermgr import DriverManager from spell.lib.registry import REGISTRY from server.ui.cmdline import ClientIF DriverManager.instance().cleanup(shutdown=True) for ifc in REGISTRY.interfaces(): REGISTRY.remove(ifc) if __main__.__dict__.has_key(ifc): __main__.__dict__.pop(ifc) if "CIF" in REGISTRY.interfaces(): ClientIF.cleanup()
from server.ui.cmdline import ClientIF from spell.config.reader import Config try: DriverManager.instance().setup(ctxName) except SpellException, ex: print "Unable to setup driver: ", ex.message, ex.reason DriverManager.instance().cleanup(force=True) return False FakeExecutor().setup() for ifc in REGISTRY.interfaces(): __main__.__dict__[ifc] = REGISTRY[ifc] ClientIF.setup(ctxName) # Get builtin databases __main__.__dict__['SCDB'] = REGISTRY['DBMGR']['SCDB'] __main__.__dict__['GDB'] = REGISTRY['DBMGR']['GDB'] if showProgress: print print print "Importing interfaces" g_ctx = globals() ifcs = ['TM', 'TC', 'EV', 'RSC', 'TASK', 'USER', 'DBMGR', 'SCDB', 'GDB'] for ifc in ifcs: try:
from server.ui.cmdline import ClientIF from spell.config.reader import Config try: DriverManager.instance().setup(ctxName) except SpellException, ex: print "Unable to setup driver: ", ex.message, ex.reason DriverManager.instance().cleanup(force=True) return False FakeExecutor().setup() for ifc in REGISTRY.interfaces(): __main__.__dict__[ifc] = REGISTRY[ifc] ClientIF.setup(ctxName) # Get builtin databases __main__.__dict__["SCDB"] = REGISTRY["DBMGR"]["SCDB"] __main__.__dict__["GDB"] = REGISTRY["DBMGR"]["GDB"] if showProgress: print print print "Importing interfaces" g_ctx = globals() ifcs = ["TM", "TC", "EV", "RSC", "TASK", "USER", "DBMGR", "SCDB", "GDB"] for ifc in ifcs: try: