本文整理汇总了Python中subscription_manager.gui.utils.linkify函数的典型用法代码示例。如果您正苦于以下问题:Python linkify函数的具体用法?Python linkify怎么用?Python linkify使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了linkify函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: update_facts
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)
示例2: update_facts
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)
示例3: test_example_2
def test_example_2(self):
ret = utils.linkify(self.example_2)
self.assertEquals(ret, self.expected_example_2)
示例4: test_dash
def test_dash(self):
ret = utils.linkify(self.http_url_dash)
self.assertEquals(ret, self.expected_http_url_dash)
示例5: test_nested
def test_nested(self):
ret = utils.linkify(self.nested)
self.assertEquals(ret, self.expected_nested)
示例6: test_http_nested_space
def test_http_nested_space(self):
ret = utils.linkify(self.nested_space)
self.assertEquals(ret, self.expected_nested_space)
示例7: test_https_url
def test_https_url(self):
ret = utils.linkify(self.https_url)
self.assertEquals(ret, self.expected_https_url)
示例8: test_no_url
def test_no_url(self):
ret = utils.linkify(self.no_url)
self.assertEquals(ret, self.no_url)
示例9: _check_rhn_classic
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)