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
72a3ddb3
Commit
72a3ddb3
authored
Jul 11, 2017
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_crm: Remove whitespaces.
parent
93c16e43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/HostingSubscription_createSupportRequestEvent.py
...nitoring/HostingSubscription_createSupportRequestEvent.py
+4
-4
No files found.
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/HostingSubscription_createSupportRequestEvent.py
View file @
72a3ddb3
...
@@ -4,7 +4,7 @@ ticket_title = "Hosting Subscription %s is failing." % context.getTitle()
...
@@ -4,7 +4,7 @@ ticket_title = "Hosting Subscription %s is failing." % context.getTitle()
description
=
"%s contains software instances which are unallocated or reporting errors."
%
(
description
=
"%s contains software instances which are unallocated or reporting errors."
%
(
context
.
getTitle
())
context
.
getTitle
())
support_request
=
context
.
Base_generateSupportRequestForSlapOS
(
support_request
=
context
.
Base_generateSupportRequestForSlapOS
(
ticket_title
,
ticket_title
,
description
,
description
,
...
@@ -12,11 +12,11 @@ support_request = context.Base_generateSupportRequestForSlapOS(
...
@@ -12,11 +12,11 @@ support_request = context.Base_generateSupportRequestForSlapOS(
if
support_request
is
None
:
if
support_request
is
None
:
return
return
person
=
context
.
getDestinationSectionValue
(
portal_type
=
"Person"
)
person
=
context
.
getDestinationSectionValue
(
portal_type
=
"Person"
)
if
not
person
:
if
not
person
:
return
return
if
support_request
.
getSimulationState
()
not
in
[
"validated"
,
"suspended"
]:
if
support_request
.
getSimulationState
()
not
in
[
"validated"
,
"suspended"
]:
support_request
.
validate
()
support_request
.
validate
()
...
@@ -32,6 +32,6 @@ if notification_message is not None:
...
@@ -32,6 +32,6 @@ if notification_message is not None:
message
=
notification_message
.
asText
(
message
=
notification_message
.
asText
(
substitution_method_parameter_dict
=
{
'mapping_dict'
:
mapping_dict
})
substitution_method_parameter_dict
=
{
'mapping_dict'
:
mapping_dict
})
return
support_request
.
SupportRequest_trySendNotificationMessage
(
return
support_request
.
SupportRequest_trySendNotificationMessage
(
ticket_title
,
message
,
person
.
getRelativeUrl
())
ticket_title
,
message
,
person
.
getRelativeUrl
())
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