Commit 0b01f8a3 authored by Julien Muchembled's avatar Julien Muchembled

Fix IngestionFile_findTypeNameForEvent against r21530 (temp objects).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21565 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fbc6547d
......@@ -67,8 +67,7 @@
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Document import newTempEvent\n
\n
new_id = newTempEvent(context, \'subobject\', data=context.getData())\n
event = context[new_id]\n
event = newTempEvent(context, \'subobject\', data=context.getData())\n
\n
# First, try to find portal type from content.\n
portal_type = event.getPropertyDictFromContent().get(\'portal_type\', None)\n
......@@ -126,8 +125,6 @@ return predicate.getDestinationPortalType()\n
<string>newTempEvent</string>
<string>context</string>
<string>_getattr_</string>
<string>new_id</string>
<string>_getitem_</string>
<string>event</string>
<string>None</string>
<string>portal_type</string>
......
264
\ No newline at end of file
265
\ 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