from parallels.core.utils.message_utils import single_line_message
from parallels.core.utils.message_utils import multi_line_message

FAILED_TO_CALL_PPA_PUBLIC_API_METHOD = multi_line_message("""
	Failed to call PPA Public API method: %s. 
	Most probably the issue is caused by incorrect PPA Public API configuration. Please verify settings at: "System" - "Settings" - "Public API":
	1. "SSL" should be enabled.
	2. "HTTP Authentication" should be enabled.
	3. "Accept connections" should have one of the values:
	   1) "Only from allowed networks". In that case you should add host where you run migration/moving tools to allowed hosts at "Allowed Networks" tab.
	   2) "From everywhere". No additional configuration is required in that case, still this option is not recommended due to security considerations.
""")
ONLY_HTTP_AND_HTTPS_PROTOCOLS_ARE_SUPPORTED = single_line_message("""
	Only http and https protocols are supported by xmlrpclib
""")
