[Erp5-report] r41096 nicolas - in /erp5/trunk/bt5/erp5_dms: SkinTemplateItem/portal_skins/e...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Dec 3 15:47:43 CET 2010


Author: nicolas
Date: Fri Dec  3 15:47:42 2010
New Revision: 41096

URL: http://svn.erp5.org?rev=41096&view=rev
Log:
s/file_name/filename/

Modified:
    erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DocumentIngestionMessage_finishIngestion.xml
    erp5/trunk/bt5/erp5_dms/bt/revision

Modified: erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DocumentIngestionMessage_finishIngestion.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DocumentIngestionMessage_finishIngestion.xml?rev=41096&r1=41095&r2=41096&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DocumentIngestionMessage_finishIngestion.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DocumentIngestionMessage_finishIngestion.xml [utf8] Fri Dec  3 15:47:42 2010
@@ -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.getPortalObj
 # 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>

Modified: erp5/trunk/bt5/erp5_dms/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/bt/revision?rev=41096&r1=41095&r2=41096&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_dms/bt/revision [utf8] Fri Dec  3 15:47:42 2010
@@ -1 +1 @@
-1212
\ No newline at end of file
+1217
\ No newline at end of file



More information about the Erp5-report mailing list