Commit ccf50bae authored by Romain Courteaud's avatar Romain Courteaud

Remove unreferenced mapping variables.

Call workflow transition after editing the object (because workflow could remove write permission on object)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21471 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f24647ef
...@@ -100,14 +100,14 @@ if not single_event:\n ...@@ -100,14 +100,14 @@ if not single_event:\n
event.setDestinationValue(user_person)\n event.setDestinationValue(user_person)\n
event.receive()\n event.receive()\n
else:\n else:\n
event.plan()\n
event.setDestinationValue(person)\n event.setDestinationValue(person)\n
event.setSourceValue(user_person)\n event.setSourceValue(user_person)\n
event.plan()\n
else:\n else:\n
if direction == \'incoming\' and len(person_list) > 1:\n if direction == \'incoming\' and len(person_list) > 1:\n
# This case is not possible\n # This case is not possible\n
portal_status_message = translateString("The Single Event option can only be used with outgoing messages",\n portal_status_message = translateString(\n
mapping = dict(portal_type = portal_type, count=count))\n "The Single Event option can only be used with outgoing messages")\n
return context.Base_redirect(form_id, keep_items = dict(portal_status_message=portal_status_message, selection_name=selection_name), **kw)\n return context.Base_redirect(form_id, keep_items = dict(portal_status_message=portal_status_message, selection_name=selection_name), **kw)\n
# Proceed to event creation\n # Proceed to event creation\n
event = module.newContent(portal_type=portal_type, \n event = module.newContent(portal_type=portal_type, \n
...@@ -115,9 +115,9 @@ else:\n ...@@ -115,9 +115,9 @@ else:\n
title=title, \n title=title, \n
follow_up=follow_up,\n follow_up=follow_up,\n
text_content=text_content) # text_format is set by Event_init\n text_content=text_content) # text_format is set by Event_init\n
event.plan()\n
event.setDestinationValueList(person_list)\n event.setDestinationValueList(person_list)\n
event.setSourceValue(user_person)\n event.setSourceValue(user_person)\n
event.plan()\n
count = 1\n count = 1\n
\n \n
portal_status_message = translateString("Created and associated ${count} new Events to the selected Ticket.", \n portal_status_message = translateString("Created and associated ${count} new Events to the selected Ticket.", \n
...@@ -191,9 +191,9 @@ context.Base_redirect(form_id, keep_items = dict(portal_status_message=portal_st ...@@ -191,9 +191,9 @@ context.Base_redirect(form_id, keep_items = dict(portal_status_message=portal_st
<string>event</string> <string>event</string>
<string>_inplacevar_</string> <string>_inplacevar_</string>
<string>len</string> <string>len</string>
<string>dict</string>
<string>portal_status_message</string> <string>portal_status_message</string>
<string>_apply_</string> <string>_apply_</string>
<string>dict</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
261 262
\ No newline at end of file \ No newline at end of file
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