Commit 72a3ddb3 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Remove whitespaces.

parent 93c16e43
...@@ -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())
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