Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafael Monnerat
wendelin
Commits
136c40b0
Commit
136c40b0
authored
Mar 03, 2020
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call alarm in an activity and set starting date. Call script ONLY if not already installed.
parent
cda9ef03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
2 deletions
+40
-2
bt5/erp5_wendelin_auto_configuration/PathTemplateItem/portal_alarms/wendelin_auto_configuration.xml
...emplateItem/portal_alarms/wendelin_auto_configuration.xml
+26
-1
bt5/erp5_wendelin_auto_configuration/SkinTemplateItem/portal_skins/erp5_wendelin_auto_configuration/Alarm_setupAutoConfiguration.py
...ndelin_auto_configuration/Alarm_setupAutoConfiguration.py
+14
-1
No files found.
bt5/erp5_wendelin_auto_configuration/PathTemplateItem/portal_alarms/wendelin_auto_configuration.xml
View file @
136c40b0
...
...
@@ -6,6 +6,10 @@
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
active_sense_method_id
</string>
</key>
<value>
<string>
Alarm_setupAutoConfiguration
</string>
</value>
</item>
<item>
<key>
<string>
automatic_solve
</string>
</key>
<value>
<int>
0
</int>
</value>
...
...
@@ -52,6 +56,25 @@
<tuple/>
</value>
</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>
<key>
<string>
periodicity_week
</string>
</key>
<value>
...
...
@@ -64,7 +87,9 @@
</item>
<item>
<key>
<string>
sense_method_id
</string>
</key>
<value>
<string>
Alarm_setupAutoConfiguration
</string>
</value>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
bt5/erp5_wendelin_auto_configuration/SkinTemplateItem/portal_skins/erp5_wendelin_auto_configuration/Alarm_setupAutoConfiguration.py
View file @
136c40b0
...
...
@@ -2,4 +2,17 @@
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!
"""
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."
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment