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 Verify the consistency of the System Preference for the SlapOS Master to
ensure the site configuration is set. ensure the site configuration is set.
""" """
if context.getPortalType() not in [ "System Preference"]: if context.getPortalType() not in [ "System Preference"]:
return [] return []
if context.getPreferenceState() != "global": if context.getPreferenceState() != "global":
return [] return []
portal = context.getPortalObject()
error_list = [] error_list = []
preference_method_list = [ preference_method_list = [
"getPreferredHateoasUrl", "getPreferredHateoasUrl",
"getPreferredVifibFacebookApplicationId", "getPreferredPayzenPaymentServiceReference",
"getPreferredVifibFacebookApplicationSecret", "getPreferredPayzenIntegrationSite"
"getPreferredVifibGoogleApplicationId",
"getPreferredVifibGoogleApplicationSecret",
"getPreferredVifibRestApiLoginCheck",
"getPreferredPayzenPaymentServiceReference",
"getPreferredPayzenIntegrationSite"
] ]
for method_id in preference_method_list: for method_id in preference_method_list:
result = getattr(context.portal_preferences, method_id)() 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