Commit 75613caf authored by Jérome Perrin's avatar Jérome Perrin

calling list setters with portal catalog results is not supported

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26435 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent edebf819
...@@ -69,7 +69,7 @@ if not person_list:\n ...@@ -69,7 +69,7 @@ if not person_list:\n
\n \n
# Find authenticated user\n # Find authenticated user\n
user = context.portal_membership.getAuthenticatedMember()\n user = context.portal_membership.getAuthenticatedMember()\n
user_person = context.portal_catalog.getResultValue(portal_type=\'Person\', reference=user)\n user_person = context.portal_catalog.getResultValue(portal_type=\'Person\', reference=str(user))\n
\n \n
# For every person, create an event\n # For every person, create an event\n
if not single_event:\n if not single_event:\n
...@@ -84,11 +84,11 @@ if not single_event:\n ...@@ -84,11 +84,11 @@ if not single_event:\n
count += 1\n count += 1\n
# Trigger appropriate workflow action\n # Trigger appropriate workflow action\n
if direction == \'incoming\':\n if direction == \'incoming\':\n
event.setSourceValue(person)\n event.setSourceValue(person.getObject())\n
event.setDestinationValue(user_person)\n event.setDestinationValue(user_person)\n
event.receive()\n event.receive()\n
else:\n else:\n
event.setDestinationValue(person)\n event.setDestinationValue(person.getObject())\n
event.setSourceValue(user_person)\n event.setSourceValue(user_person)\n
event.plan()\n event.plan()\n
else:\n else:\n
...@@ -103,7 +103,7 @@ else:\n ...@@ -103,7 +103,7 @@ 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.setDestinationValueList(person_list)\n event.setDestinationValueList([person.getObject() for person in person_list])\n
event.setSourceValue(user_person)\n event.setSourceValue(user_person)\n
event.plan()\n event.plan()\n
count = 1\n count = 1\n
...@@ -166,6 +166,7 @@ context.Base_redirect(form_id, keep_items = dict(portal_status_message=portal_st ...@@ -166,6 +166,7 @@ context.Base_redirect(form_id, keep_items = dict(portal_status_message=portal_st
<string>module</string> <string>module</string>
<string>person_list</string> <string>person_list</string>
<string>user</string> <string>user</string>
<string>str</string>
<string>user_person</string> <string>user_person</string>
<string>count</string> <string>count</string>
<string>_getiter_</string> <string>_getiter_</string>
...@@ -176,6 +177,8 @@ context.Base_redirect(form_id, keep_items = dict(portal_status_message=portal_st ...@@ -176,6 +177,8 @@ context.Base_redirect(form_id, keep_items = dict(portal_status_message=portal_st
<string>portal_status_message</string> <string>portal_status_message</string>
<string>_apply_</string> <string>_apply_</string>
<string>dict</string> <string>dict</string>
<string>append</string>
<string>$append0</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
362 363
\ 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