Commit a27c7e60 authored by Łukasz Nowak's avatar Łukasz Nowak

Avoid object creation.

The promise will always fail, unless there is active system preference to fix.
parent 37ecaf8d
...@@ -60,10 +60,7 @@ domain = domain_port[:-(len(port)+1)]\n ...@@ -60,10 +60,7 @@ domain = domain_port[:-(len(port)+1)]\n
\n \n
system_preference = portal_preferences.getActiveSystemPreference()\n system_preference = portal_preferences.getActiveSystemPreference()\n
if system_preference is None:\n if system_preference is None:\n
system_preference = portal_preferences.newContent(\n return\n
portal_type="System Preference", \n
title="Created by Promise Alarms")\n
system_preference.enable()\n
\n \n
system_preference.edit(\n system_preference.edit(\n
preferred_ooodoc_server_address=domain,\n preferred_ooodoc_server_address=domain,\n
......
20 21
\ No newline at end of file \ No newline at end of file
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