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 []
if context.getId() == "slapos_default_system_preference" and context.getPreferenceState() != "global":
error_log.extend(context.SystemPreference_checkSystemPreferenceConsistency(fixit=fixit, **kw))
if context.getPreferenceState() != "global":
return []
......@@ -14,7 +19,8 @@ if expected_url != url:
if fixit:
system_preference.setPreferredDocumentConversionServerUrl(expected_url)
fixing = ' (fixed)'
return ["Conversion Server not configured as expected%s: %s" %
(fixing, "Expect %s\nGot %s" % (expected_url, url))]
else:
return []
error_log.append("Conversion Server not configured as expected%s: %s" %
(fixing, "Expect %s\nGot %s" % (expected_url, url)))
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