Пример #1
0
    def _cleanup(self):
        uihelpers.cleanup()
        self.err = None

        if self.inspection:
            self.inspection.cleanup()
            self.inspection = None

        if self.timer is not None:
            GLib.source_remove(self.timer)

        if self.systray:
            self.systray.cleanup()
            self.systray = None

        self.get_manager()
        if self.windowManager:
            self.windowManager.cleanup()
            self.windowManager = None

        if self.windowPreferences:
            self.windowPreferences.cleanup()
            self.windowPreferences = None

        if self.windowAbout:
            self.windowAbout.cleanup()
            self.windowAbout = None

        if self.windowConnect:
            self.windowConnect.cleanup()
            self.windowConnect = None

        if self.windowCreate:
            self.windowCreate.cleanup()
            self.windowCreate = None

        if self.windowMigrate:
            self.windowMigrate.cleanup()
            self.windowMigrate = None

        if self.delete_dialog:
            self.delete_dialog.cleanup()
            self.delete_dialog = None

        # Do this last, so any manually 'disconnected' signals
        # take precedence over cleanup signal removal
        for uri in self.conns:
            self.cleanup_conn(uri)
        self.conns = {}
Пример #2
0
    def _cleanup(self):
        uihelpers.cleanup()
        halhelper.cleanup()
        self.err = None

        if self.inspection:
            self.inspection.cleanup()
            self.inspection = None

        if self.timer != None:
            gobject.source_remove(self.timer)

        if self.systray:
            self.systray.cleanup()
            self.systray = None

        self.get_manager()
        if self.windowManager:
            self.windowManager.cleanup()
            self.windowManager = None

        if self.windowPreferences:
            self.windowPreferences.cleanup()
            self.windowPreferences = None

        if self.windowAbout:
            self.windowAbout.cleanup()
            self.windowAbout = None

        if self.windowConnect:
            self.windowConnect.cleanup()
            self.windowConnect = None

        if self.windowCreate:
            self.windowCreate.cleanup()
            self.windowCreate = None

        if self.windowMigrate:
            self.windowMigrate.cleanup()
            self.windowMigrate = None

        # Do this last, so any manually 'disconnected' signals
        # take precedence over cleanup signal removal
        for uri in self.conns:
            self.cleanup_conn(uri)
        self.conns = {}
    def _cleanup(self):
        uihelpers.cleanup()
        halhelper.cleanup()
        self.err = None

        if self.inspection:
            self.inspection.cleanup()
            self.inspection = None

        if self.timer != None:
            gobject.source_remove(self.timer)

        if self.systray:
            self.systray.cleanup()
            self.systray = None

        self.get_manager()
        if self.windowManager:
            self.windowManager.cleanup()
            self.windowManager = None

        if self.windowPreferences:
            self.windowPreferences.cleanup()
            self.windowPreferences = None

        if self.windowAbout:
            self.windowAbout.cleanup()
            self.windowAbout = None

        if self.windowConnect:
            self.windowConnect.cleanup()
            self.windowConnect = None

        if self.windowCreate:
            self.windowCreate.cleanup()
            self.windowCreate = None

        if self.windowMigrate:
            self.windowMigrate.cleanup()
            self.windowMigrate = None

        # Start Sandeep
        if self.windowVMAffinityAbout:
            self.windowVMAffinityAbout.cleanup()
            self.windowVMAffinityAbout = None

        if self.windowVMAffinityCreateNewAffinityRule:
            self.windowVMAffinityCreateNewAffinityRule.cleanup()
            self.windowVMAffinityCreateNewAffinityRule = None

        if self.windowVMAffinityDeleteAffinityRule:
            self.windowVMAffinityDeleteAffinityRule.cleanup()
            self.windowVMAffinityDeleteAffinityRule = None

        if self.windowVMAffinityViewRules:
            self.windowVMAffinityViewRules.cleanup()
            self.windowVMAffinityViewRules = None

        if self.windowVMAffinityManageRules:
            self.windowVMAffinityManageRules.cleanup()
            self.windowVMAffinityManageRules = None

        if self.windowVMAffinityCreateHostAffinityRule:
            self.windowVMAffinityCreateHostAffinityRule.cleanup()
            self.windowVMAffinityCreateHostAffinityRule = None

        if self.windowVMAffinityDeleteHostAffinityRule:
            self.windowVMAffinityDeleteHostAffinityRule.cleanup()
            self.windowVMAffinityDeleteHostAffinityRule = None

        if self.windowVMAffinityViewHostAffinityRules:
            self.windowVMAffinityViewHostAffinityRules.cleanup()
            self.windowVMAffinityViewHostAffinityRules = None
        # Stop Sandeep

        # Do this last, so any manually 'disconnected' signals
        # take precedence over cleanup signal removal
        for uri in self.conns:
            self.cleanup_conn(uri)
        self.conns = {}