Commit 136c40b0 authored by Ivan Tyagov's avatar Ivan Tyagov

Call alarm in an activity and set starting date. Call script ONLY if not already installed.

parent cda9ef03
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>active_sense_method_id</string> </key>
<value> <string>Alarm_setupAutoConfiguration</string> </value>
</item>
<item> <item>
<key> <string>automatic_solve</string> </key> <key> <string>automatic_solve</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
...@@ -52,6 +56,25 @@ ...@@ -52,6 +56,25 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>periodicity_start_date</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1577836800.0</float>
<string>GMT</string>
</tuple>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>periodicity_week</string> </key> <key> <string>periodicity_week</string> </key>
<value> <value>
...@@ -64,7 +87,9 @@ ...@@ -64,7 +87,9 @@
</item> </item>
<item> <item>
<key> <string>sense_method_id</string> </key> <key> <string>sense_method_id</string> </key>
<value> <string>Alarm_setupAutoConfiguration</string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -2,4 +2,17 @@ ...@@ -2,4 +2,17 @@
This script will setup the default Wendelin's configuration as saved in erp5_wendelin_scalability_test business template. This script will setup the default Wendelin's configuration as saved in erp5_wendelin_scalability_test business template.
As this modifies your site care must be taken! As this modifies your site care must be taken!
""" """
context.ERP5Site_bootstrapScalabilityTest(user_quantity=0, setup_activity_tool=False, create_test_data=False, set_id_generator=False)
portal = context.getPortalObject()
configurator = getattr(portal.business_configuration_module, "default_wendelin_configuration", None)
if configurator == None:
context.log("Could not find the scalability business configuration object. Be sure to have erp5_scalability_test business template installed.")
return
# install configurator if not intalled
if configurator.getCurrentStateTitle() != "End":
# nothing installed, thus do it
context.ERP5Site_bootstrapScalabilityTest(user_quantity=0, setup_activity_tool=False, create_test_data=False, set_id_generator=False)
else:
context.log("All configured. Nothing to do.")
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