Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Léo-Paul Géneau
slapos.core
Commits
d312d7cb
Commit
d312d7cb
authored
Dec 07, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_crm: Pass the number of the days from a parameter to the message
parent
30e787cf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_triggerAcknowledgmentEscalation.py
.../RegularisationRequest_triggerAcknowledgmentEscalation.py
+4
-2
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_triggerDeleteReminderEscalation.py
.../RegularisationRequest_triggerDeleteReminderEscalation.py
+4
-2
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_triggerStopAcknowledgmentEscalation.py
...ularisationRequest_triggerStopAcknowledgmentEscalation.py
+4
-2
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_triggerStopReminderEscalation.py
...rm/RegularisationRequest_triggerStopReminderEscalation.py
+4
-2
No files found.
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_triggerAcknowledgmentEscalation.py
View file @
d312d7cb
...
...
@@ -3,6 +3,7 @@ if REQUEST is not None:
raise
Unauthorized
portal
=
context
.
getPortalObject
()
ndays
=
15
language
=
"en"
recipient
=
context
.
getDestinationSectionValue
()
if
recipient
is
not
None
:
...
...
@@ -24,7 +25,8 @@ The slapos team
else
:
notification_mapping_dict
=
{
'user_name'
:
context
.
getDestinationSectionTitle
()}
'user_name'
:
context
.
getDestinationSectionTitle
(),
'days'
:
ndays
}
subject
=
notification_message
.
getTitle
()
...
...
@@ -37,7 +39,7 @@ else:
substitution_method_parameter_dict
=
{
'mapping_dict'
:
notification_mapping_dict
})
return
context
.
RegularisationRequest_checkToTriggerNextEscalationStep
(
delay_period_in_days
=
15
,
delay_period_in_days
=
ndays
,
current_service_relative_url
=
'service_module/slapos_crm_acknowledgement'
,
next_service_relative_url
=
'service_module/slapos_crm_stop_reminder'
,
title
=
subject
,
...
...
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_triggerDeleteReminderEscalation.py
View file @
d312d7cb
...
...
@@ -3,6 +3,7 @@ if REQUEST is not None:
raise
Unauthorized
portal
=
context
.
getPortalObject
()
ndays
=
10
language
=
"en"
recipient
=
context
.
getDestinationSectionValue
()
if
recipient
is
not
None
:
...
...
@@ -23,7 +24,8 @@ The slapos team
"""
%
context
.
getPortalObject
().
portal_preferences
.
getPreferredSlaposWebSiteUrl
()
else
:
notification_mapping_dict
=
{
'user_name'
:
context
.
getDestinationSectionTitle
()}
'user_name'
:
context
.
getDestinationSectionTitle
(),
'days'
:
ndays
}
subject
=
notification_message
.
getTitle
()
...
...
@@ -36,7 +38,7 @@ else:
substitution_method_parameter_dict
=
{
'mapping_dict'
:
notification_mapping_dict
})
return
context
.
RegularisationRequest_checkToTriggerNextEscalationStep
(
delay_period_in_days
=
10
,
delay_period_in_days
=
ndays
,
current_service_relative_url
=
'service_module/slapos_crm_delete_reminder'
,
next_service_relative_url
=
'service_module/slapos_crm_delete_acknowledgement'
,
title
=
subject
,
...
...
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_triggerStopAcknowledgmentEscalation.py
View file @
d312d7cb
...
...
@@ -3,6 +3,7 @@ if REQUEST is not None:
raise
Unauthorized
portal
=
context
.
getPortalObject
()
ndays
=
7
language
=
"en"
recipient
=
context
.
getDestinationSectionValue
()
if
recipient
is
not
None
:
...
...
@@ -23,7 +24,8 @@ The slapos team
"""
%
context
.
getPortalObject
().
portal_preferences
.
getPreferredSlaposWebSiteUrl
()
else
:
notification_mapping_dict
=
{
'user_name'
:
context
.
getDestinationSectionTitle
()}
'user_name'
:
context
.
getDestinationSectionTitle
(),
'days'
:
ndays
}
subject
=
notification_message
.
getTitle
()
...
...
@@ -36,7 +38,7 @@ else:
substitution_method_parameter_dict
=
{
'mapping_dict'
:
notification_mapping_dict
})
return
context
.
RegularisationRequest_checkToTriggerNextEscalationStep
(
delay_period_in_days
=
7
,
delay_period_in_days
=
ndays
,
current_service_relative_url
=
'service_module/slapos_crm_stop_acknowledgement'
,
next_service_relative_url
=
'service_module/slapos_crm_delete_reminder'
,
title
=
subject
,
...
...
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_triggerStopReminderEscalation.py
View file @
d312d7cb
...
...
@@ -3,6 +3,7 @@ if REQUEST is not None:
raise
Unauthorized
portal
=
context
.
getPortalObject
()
ndays
=
7
language
=
"en"
recipient
=
context
.
getDestinationSectionValue
()
if
recipient
is
not
None
:
...
...
@@ -23,7 +24,8 @@ The slapos team
"""
%
context
.
getPortalObject
().
portal_preferences
.
getPreferredSlaposWebSiteUrl
()
else
:
notification_mapping_dict
=
{
'user_name'
:
context
.
getDestinationSectionTitle
()}
'user_name'
:
context
.
getDestinationSectionTitle
(),
'days'
:
ndays
}
subject
=
notification_message
.
getTitle
()
...
...
@@ -36,7 +38,7 @@ else:
substitution_method_parameter_dict
=
{
'mapping_dict'
:
notification_mapping_dict
})
return
context
.
RegularisationRequest_checkToTriggerNextEscalationStep
(
delay_period_in_days
=
7
,
delay_period_in_days
=
ndays
,
current_service_relative_url
=
'service_module/slapos_crm_stop_reminder'
,
next_service_relative_url
=
'service_module/slapos_crm_stop_acknowledgement'
,
title
=
subject
,
...
...
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