def cleanup(self, shutdown = False): if self.__ready: superClass.cleanup(self, shutdown) LOG("Cleanup standalone CFG interface") REGISTRY['SIM'].cleanup() REGISTRY.remove('SIM') self.__ready = False
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()