Example #1
0
    def update_facts(self):
        """Sends the current system facts to the UEP server."""
        consumer_uuid = self.consumer.uuid

        try:
            self.facts.update_check(self.backend.uep, consumer_uuid, force=True)
        except Exception, e:
            log.error("Could not update system facts \nError: %s" % e)
            handle_gui_exception(e, linkify(str(e)), self.system_facts_dialog)
    def update_facts(self):
        """Sends the current system facts to the UEP server."""

        identity = inj.require(inj.IDENTITY)

        try:
            self.facts.update_check(self.cp_provider.get_consumer_auth_cp(), identity.uuid, force=True)
        except Exception, e:
            log.error("Could not update system facts \nError: %s" % e)
            handle_gui_exception(e, linkify(str(e)), self.system_facts_dialog)
 def test_example_2(self):
     ret = utils.linkify(self.example_2)
     self.assertEquals(ret, self.expected_example_2)
 def test_dash(self):
     ret = utils.linkify(self.http_url_dash)
     self.assertEquals(ret, self.expected_http_url_dash)
 def test_nested(self):
     ret = utils.linkify(self.nested)
     self.assertEquals(ret, self.expected_nested)
 def test_http_nested_space(self):
     ret = utils.linkify(self.nested_space)
     self.assertEquals(ret, self.expected_nested_space)
 def test_https_url(self):
     ret = utils.linkify(self.https_url)
     self.assertEquals(ret, self.expected_https_url)
 def test_no_url(self):
     ret = utils.linkify(self.no_url)
     self.assertEquals(ret, self.no_url)
 def test_example_2(self):
     ret = utils.linkify(self.example_2)
     self.assertEqual(ret, self.expected_example_2)
 def test_dash(self):
     ret = utils.linkify(self.http_url_dash)
     self.assertEqual(ret, self.expected_http_url_dash)
 def test_nested(self):
     ret = utils.linkify(self.nested)
     self.assertEqual(ret, self.expected_nested)
 def test_http_nested_space(self):
     ret = utils.linkify(self.nested_space)
     self.assertEqual(ret, self.expected_nested_space)
 def test_https_url(self):
     ret = utils.linkify(self.https_url)
     self.assertEqual(ret, self.expected_https_url)
 def test_no_url(self):
     ret = utils.linkify(self.no_url)
     self.assertEqual(ret, self.no_url)
Example #15
0
 def _check_rhn_classic(self):
     if ClassicCheck().is_registered_with_classic():
         prompt = messageWindow.ContinueDialog(
             linkify(get_branding().REGISTERED_TO_OTHER_WARNING),
             self.main_window, _("System Already Registered"))
         prompt.connect('response', self._on_rhn_classic_response)
 def _check_rhn_classic(self):
     if ClassicCheck().is_registered_with_classic():
         prompt = messageWindow.ContinueDialog(
                 linkify(get_branding().REGISTERED_TO_OTHER_WARNING),
                 self.main_window, _("System Already Registered"))
         prompt.connect('response', self._on_rhn_classic_response)