[Erp5-report] r10716 - /erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Oct 14 13:06:53 CEST 2006


Author: bartek
Date: Sat Oct 14 13:06:51 2006
New Revision: 10716

URL: http://svn.erp5.org?rev=10716&view=rev
Log:
fixed - upload file failed on creating new object if any property was None

Modified:
    erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMSDocument_uploadFile.xml

Modified: erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMSDocument_uploadFile.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMSDocument_uploadFile.xml?rev=10716&r1=10715&r2=10716&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMSDocument_uploadFile.xml (original)
+++ erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMSDocument_uploadFile.xml Sat Oct 14 13:06:51 2006
@@ -91,7 +91,9 @@
   # we rely on ingestion script to determine coordinates\n
   copylist+=[\'title\',\'short_title\',\'index\',\'description\',\'subject\']\n
   for a in copylist:\n
-    newob.setProperty(a,context.getProperty(a))\n
+    v=context.getProperty(a)\n
+    if v is not None:\n
+      newob.setProperty(a,v)\n
   ob=newob\n
   msg=\'object already had a file - a new object has been created\'\n
 else:\n
@@ -161,6 +163,7 @@
                             <string>_getitem_</string>
                             <string>copylist</string>
                             <string>_getiter_</string>
+                            <string>v</string>
                             <string>ob</string>
                             <string>msg</string>
                             <string>url</string>




More information about the Erp5-report mailing list