def not_buddycloud_enabled_template(): briefing_template = bold("{{domain_url}}") + " is not " briefing_template += italic("buddycloud enabled") + "." message_template = "Congratulations! " + briefing_template briefing_template = parse(briefing_template) message_template = parse(message_template) return briefing_template, message_template
def multiple_problems_template(): briefing_template = "No xmpp server found is " briefing_template += italic("buddycloud enabled") + "." message_template = briefing_template + breakline() + "Several problems w" message_template += "ith XMPP servers found: " + breakline() + breakline() message_template += "{{#xmpp_servers}}" + bold("{{name}}:") + breakline() message_template += "{{&error}}" + breakline() + breakline() + "{{/xmpp_" message_template += "servers}}" briefing_template = parse(briefing_template) message_template = parse(message_template) return briefing_template, message_template
def buddycloud_enabled_conflict_template(): briefing_template = bold("{{domain_url}}") + " is " briefing_template += italic("buddycloud enabled") + "," briefing_template += " but we detected a conflict problem." message_template = briefing_template + breakline() message_template += "Using " + code("Service Discovery") message_template += ", we found your channel server at " message_template += bold("{{channel_server}}") + "!" + breakline() message_template += "But we also found a channel server through " message_template += code("TXT record lookup") + ", which is different: " message_template += bold("{{channel_server2}}") + "!" + breakline() message_template += "The channel server addresses found through " message_template += code("Service Discovery") + " and " + code("TXT record lookup") + " must match!" briefing_template = parse(briefing_template) message_template = parse(message_template) return briefing_template, message_template
def is_buddycloud_enabled_template(): briefing_template = bold("{{domain_url}}") + " is " briefing_template += italic("buddycloud enabled") + "." message_template = "Congratulations! " + briefing_template + breakline() message_template += "{{#discovery}}Using " + code("Service Discovery") message_template += ", we found your channel server at " message_template += bold("{{channel_server}}") + "!" + breakline() message_template += "{{#ptr_record}}We also found your channel server " message_template += code("PTR record") + ".{{/ptr_record}}{{/discovery}}" message_template += "{{#ptr_record}}Using " + code("PTR record") + ", we" message_template += " found your channel server at " message_template += bold("{{channel_server}}") + "!" + breakline() + "Bu" message_template += "t we could not find it through " message_template += code("Service Discovery") + ".{{/ptr_record}}" briefing_template = parse(briefing_template) message_template = parse(message_template) return briefing_template, message_template