Пример #1
0
 def show_exception_message(self, ex):
     msg = ("A fatal error has occurred: {}\n".format(ex.args[0]))
     log.error(msg)
     self.frame.body = ErrorView(ex.args[0])
     AlarmMonitor.remove_all()
Пример #2
0
            self.add_services_dialog = AddServicesDialog(self.controller,
                                                         deploy_cb=deploy,
                                                         cancel_cb=cancel)
        self.add_services_dialog.update()
        self.frame.body = Filler(self.add_services_dialog)

    def show_exception_message(self, ex):
        if isinstance(ex, async .ThreadCancelledException):
            log.debug("Thread cancelled intentionally.")
        else:
            msg = ("A fatal error has occurred: {}\n".format(ex.args[0]))
            log.error(msg)
            log.exception(ex)
            self.frame.body = ErrorView(ex.args[0])

        AlarmMonitor.remove_all()

    def select_install_type(self, install_types, cb):
        """ Dialog for selecting installation type
        """
        self.show_selector_with_desc(
            'Select the type of installation to perform', install_types, cb)

    def __repr__(self):
        return "<Ubuntu OpenStack Installer GUI Interface>"

    def tasker(self, loop, config):
        """ Interface with Tasker class

        :param loop: urwid.Mainloop
        :param dict config: config object
Пример #3
0
 def show_exception_message(self, ex):
     msg = "A fatal error has occurred: {}\n".format(ex.args[0])
     log.error(msg)
     self.frame.body = ErrorView(ex.args[0])
     AlarmMonitor.remove_all()
Пример #4
0
        if self.add_services_dialog is None:
            self.add_services_dialog = AddServicesDialog(self.controller,
                                                         deploy_cb=deploy,
                                                         cancel_cb=cancel)
        self.add_services_dialog.update()
        self.frame.body = Filler(self.add_services_dialog)

    def show_exception_message(self, ex):
        if isinstance(ex, async.ThreadCancelledException):
            log.debug("Thread cancelled intentionally.")
        else:
            msg = ("A fatal error has occurred: {}\n".format(ex.args[0]))
            log.error(msg)
            self.frame.body = ErrorView(ex.args[0])

        AlarmMonitor.remove_all()

    def select_install_type(self, install_types, cb):
        """ Dialog for selecting installation type
        """
        self.show_selector_with_desc(
            'Select the type of installation to perform',
            install_types,
            cb)

    def __repr__(self):
        return "<Ubuntu OpenStack Installer GUI Interface>"

    def tasker(self, loop, config):
        """ Interface with Tasker class