[Erp5-report] r31583 jerome - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplat...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jan 5 18:05:14 CET 2010
Author: jerome
Date: Tue Jan 5 18:05:11 2010
New Revision: 31583
URL: http://svn.erp5.org?rev=31583&view=rev
Log:
- Add missing limit=None to prevent the safety limit of 1000 documents
- use default_%(base_category)s_uid related key, because %(base_category)s
fails for some base categories, for example source_uid cannot be mapped and
is a catalog error.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_constructCategoryTableToExport.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_constructCategoryTableToExport.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_constructCategoryTableToExport.xml?rev=31583&r1=31582&r2=31583&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_constructCategoryTableToExport.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_constructCategoryTableToExport.xml [utf8] Tue Jan 5 18:05:11 2010
@@ -63,7 +63,10 @@
d[\'cat_list\'] = cat_list = []\n
d[\'max_cat_depth\'] = max_cat_depth = 0\n
cat_info_list.append(d)\n
- for cat in context.portal_catalog(portal_type=\'Category\', sort_on=((\'path\', \'accending\'),), **{\'%s_uid\' % (base_cat.getId(),): base_cat.getUid()}):\n
+ for cat in context.portal_catalog(portal_type=\'Category\',\n
+ sort_on=((\'path\', \'ascending\'),),\n
+ limit=None,\n
+ **{\'default_%s_uid\' % (base_cat.getId(),): base_cat.getUid()}):\n
d[\'cat_list\'].append(cat)\n
cat_depth = len(cat.getRelativeUrl().split(\'/\'))\n
if cat_depth > d[\'max_cat_depth\']:\n
@@ -150,6 +153,7 @@
<string>cat_list</string>
<string>max_cat_depth</string>
<string>_apply_</string>
+ <string>None</string>
<string>cat</string>
<string>len</string>
<string>cat_depth</string>
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=31583&r1=31582&r2=31583&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Tue Jan 5 18:05:11 2010
@@ -1,1 +1,1 @@
-1414
+1415
More information about the Erp5-report
mailing list