예제 #1
0
 def _update_certificates_button_clicked(self, widget):
     # Catch exceptions in the autobind wizard initialization (only)
     try:
         autobind_wizard = AutobindWizard(self.backend, self.consumer, self.facts,
                 self._get_window())
         autobind_wizard.show()
     except Exception, e:
         handle_gui_exception(e, _("Error in autobind wizard"), self._get_window())
예제 #2
0
 def _update_certificates_button_clicked(self, widget):
     # Catch exceptions in the autobind wizard initialization (only)
     try:
         autobind_wizard = AutobindWizard(self.backend, self.consumer,
                                          self.facts, self._get_window())
         autobind_wizard.show()
     except Exception, e:
         handle_gui_exception(e, _("Error in autobind wizard"),
                              self._get_window())
예제 #3
0
    def registration_changed(self, skip_auto_bind):
        log.debug("Registration changed, updating main window.")
        self.consumer.reload()
        # If we are now registered, load the Autobind wizard.

        if self.registered() and not skip_auto_bind:
            try:
                autobind_wizard = AutobindWizard(self.backend, self.consumer, self.facts,
                        self._get_window(), self._on_sla_back_button_press,
                        self._on_sla_cancel_button_press)
                autobind_wizard.show()
            except Exception, e:
                # If an exception occurs here, refresh the UI so that
                # it remains in the correct state an then raise the
                # exception again.
                self.refresh()
                raise e
            return
예제 #4
0
    def registration_changed(self, skip_auto_bind):
        log.debug("Registration changed, updating main window.")
        self.consumer.reload()
        # If we are now registered, load the Autobind wizard.

        if self.registered() and not skip_auto_bind:
            try:
                autobind_wizard = AutobindWizard(
                    self.backend, self.consumer, self.facts,
                    self._get_window(), self._on_sla_back_button_press,
                    self._on_sla_cancel_button_press)
                autobind_wizard.show()
            except Exception, e:
                # If an exception occurs here, refresh the UI so that
                # it remains in the correct state an then raise the
                # exception again.
                self.refresh()
                raise e
            return