Commit 08ad8ae5 authored by Tristan Cavelier's avatar Tristan Cavelier Committed by Cédric Le Ninivin

free_subscription: set email during Free Subscription Request creation

parent 71eb7233
...@@ -65,6 +65,7 @@ if subscription_type == "unsubscription":\n ...@@ -65,6 +65,7 @@ if subscription_type == "unsubscription":\n
resource = event.getResource(),\n resource = event.getResource(),\n
free_subscription_request_type="unsubscription",\n free_subscription_request_type="unsubscription",\n
causality_value=event,\n causality_value=event,\n
default_email_coordinate_text=event.getDestinationValue().getDefaultEmailCoordinateText(),\n
)\n )\n
\n \n
free_subscription_list = portal.portal_catalog(portal_type="Free Subscription",\n free_subscription_list = portal.portal_catalog(portal_type="Free Subscription",\n
...@@ -85,6 +86,7 @@ else:\n ...@@ -85,6 +86,7 @@ else:\n
resource=resource,\n resource=resource,\n
free_subscription_request_type="subscription",\n free_subscription_request_type="subscription",\n
causality=causality,\n causality=causality,\n
default_email_coordinate_text=portal.restrictedTraverse(destination).getDefaultEmailCoordinateText(),\n
)\n )\n
\n \n
request.submit()\n request.submit()\n
......
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