[Erp5-report] r9917 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/po...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Sep 14 15:17:18 CEST 2006
Author: romain
Date: Thu Sep 14 15:17:15 2006
New Revision: 9917
URL: http://svn.erp5.org?rev=9917&view=rev
Log:
CategoryTool_importCategoryFile can now import an int_index columns.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFile.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFile.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFile.xml?rev=9917&r1=9916&r2=9917&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFile.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFile.xml Thu Sep 14 15:17:15 2006
@@ -230,8 +230,11 @@
if value not in (\'\', None):\n
if hasattr(new_category, method_id):\n
method = getattr(new_category, method_id)\n
- # Convert the value to something like \'\\xc3\\xa9\' not \'\\xc3\\xa9\'\n
- method(value.encode(\'UTF-8\'))\n
+ if key != \'int_index\':\n
+ # Convert the value to something like \'\\xc3\\xa9\' not \'\\xc3\\xa9\'\n
+ method(value.encode(\'UTF-8\'))\n
+ else:\n
+ method(int(value))\n
\n
\n
# Import is a success, go back to the portal_categories tool\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=9917&r1=9916&r2=9917&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Thu Sep 14 15:17:15 2006
@@ -1,1 +1,1 @@
-73
+75
More information about the Erp5-report
mailing list