[Erp5-report] r20435 - /erp5/trunk/products/ERP5Form/Extensions/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 10 19:37:57 CEST 2008


Author: fabien
Date: Thu Apr 10 19:37:57 2008
New Revision: 20435

URL: http://svn.erp5.org?rev=20435&view=rev
Log:
correct very dangerous bug (thanks to Mame) : don't remove other files wich not
contain portal_type object id, because many portal_types could be in a same
skin folder.

Modified:
    erp5/trunk/products/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py

Modified: erp5/trunk/products/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py?rev=20435&r1=20434&r2=20435&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py (original)
+++ erp5/trunk/products/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py Thu Apr 10 19:37:57 2008
@@ -128,7 +128,7 @@
   # except the module form view (because it don't change)
   object_id_list = []
   for object in skin_folder._objects:
-    if 'Module_view' not in object['id']:
+    if 'Module_view' not in object['id'] and temp_portal_type in object['id']:
       object_id_list.append(object['id'])
 
   # move the old objects in portal_trash




More information about the Erp5-report mailing list