Commit 1de8ff9c authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_erp5: Remove unsupported properties on system preference.

parent 1955ab6a
"""
Verify the consistency of the System Preference for the SlapOS Master to
ensure the site configuration is set.
Verify the consistency of the System Preference for the SlapOS Master to
ensure the site configuration is set.
"""
if context.getPortalType() not in [ "System Preference"]:
return []
if context.getPreferenceState() != "global":
return []
portal = context.getPortalObject()
error_list = []
preference_method_list = [
"getPreferredHateoasUrl",
"getPreferredVifibFacebookApplicationId",
"getPreferredVifibFacebookApplicationSecret",
"getPreferredVifibGoogleApplicationId",
"getPreferredVifibGoogleApplicationSecret",
"getPreferredVifibRestApiLoginCheck",
"getPreferredPayzenPaymentServiceReference",
"getPreferredPayzenIntegrationSite"
"getPreferredPayzenPaymentServiceReference",
"getPreferredPayzenIntegrationSite"
]
for method_id in preference_method_list:
result = getattr(context.portal_preferences, method_id)()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment