Commit 6e88f401 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_erp5: Call other Constraint Script due precedence

   Since the ID is used, it is important to "enableGlobal" before set conversion server configuration.
parent 91fa45cf
if context.getPortalType() not in [ "System Preference"]: error_log = []
if context.getPortalType() not in ["System Preference"]:
return [] return []
if context.getId() == "slapos_default_system_preference" and context.getPreferenceState() != "global":
error_log.extend(context.SystemPreference_checkSystemPreferenceConsistency(fixit=fixit, **kw))
if context.getPreferenceState() != "global": if context.getPreferenceState() != "global":
return [] return []
...@@ -14,7 +19,8 @@ if expected_url != url: ...@@ -14,7 +19,8 @@ if expected_url != url:
if fixit: if fixit:
system_preference.setPreferredDocumentConversionServerUrl(expected_url) system_preference.setPreferredDocumentConversionServerUrl(expected_url)
fixing = ' (fixed)' fixing = ' (fixed)'
return ["Conversion Server not configured as expected%s: %s" %
(fixing, "Expect %s\nGot %s" % (expected_url, url))] error_log.append("Conversion Server not configured as expected%s: %s" %
else: (fixing, "Expect %s\nGot %s" % (expected_url, url)))
return []
return error_log
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