From 8f5d4994e54f2062622e3d77b97a50261e0072a7 Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Fri, 3 Dec 2010 14:47:42 +0000
Subject: [PATCH] s/file_name/filename/

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41096 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../DocumentIngestionMessage_finishIngestion.xml    | 13 +++++--------
 bt5/erp5_dms/bt/revision                            |  2 +-
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DocumentIngestionMessage_finishIngestion.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DocumentIngestionMessage_finishIngestion.xml
index b4ccb7dfd6..fcd96c6243 100644
--- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DocumentIngestionMessage_finishIngestion.xml
+++ b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DocumentIngestionMessage_finishIngestion.xml
@@ -2,10 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <tuple>
-        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
-        <tuple/>
-      </tuple>
+      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
     </pickle>
     <pickle>
       <dictionary>
@@ -87,16 +84,16 @@ contribution_tool = context.getPortalObject().portal_contributions\n
 # Ingest attachments\n
 for attachment_item in context.getAttachmentInformationList():\n
   # We do not care about files without name\n
-  file_name = attachment_item.get(\'file_name\')\n
+  filename = attachment_item.get(\'filename\')\n
   # We do not take into account the message itself\n
   # XXX - this implementation is not acceptable in\n
   # the long term. Better approach to defining the\n
   # body of a message is required\n
-  if file_name and not file_name.startswith(\'part\'):\n
+  if filename and not filename.startswith(\'part\'):\n
     index = attachment_item[\'index\']\n
     data = context.getAttachmentData(index)\n
     # XXX - too bad we are not using content_type here\n
-    d = contribution_tool.newContent(data=data, file_name=file_name, user_login=user_login, **metadata)\n
+    d = contribution_tool.newContent(data=data, filename=filename, user_login=user_login, **metadata)\n
     context.setAggregateList(context.getAggregateList() + [d.getRelativeUrl()])\n
 \n
 context.receive()\n
@@ -151,7 +148,7 @@ context.receive()\n
                             <string>contribution_tool</string>
                             <string>_getiter_</string>
                             <string>attachment_item</string>
-                            <string>file_name</string>
+                            <string>filename</string>
                             <string>_getitem_</string>
                             <string>index</string>
                             <string>data</string>
diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision
index f73dd741ec..08e9158390 100644
--- a/bt5/erp5_dms/bt/revision
+++ b/bt5/erp5_dms/bt/revision
@@ -1 +1 @@
-1212
\ No newline at end of file
+1217
\ No newline at end of file
-- 
2.30.9