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

slapos_erp5: Remove unsupported properties on system preference.

parent 1955ab6a
...@@ -3,31 +3,20 @@ ...@@ -3,31 +3,20 @@
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",
"getPreferredVifibFacebookApplicationSecret",
"getPreferredVifibGoogleApplicationId",
"getPreferredVifibGoogleApplicationSecret",
"getPreferredVifibRestApiLoginCheck",
"getPreferredPayzenPaymentServiceReference", "getPreferredPayzenPaymentServiceReference",
"getPreferredPayzenIntegrationSite" "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