From cddf8c235f0200bb1d5ace6af6d70963e3efa6e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl>
Date: Fri, 16 Feb 2007 13:57:27 +0000
Subject: [PATCH] Use title or id for category items (not short title)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12816 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_dms/Document_hashBaseCategoryList.xml   | 2 +-
 ...leOrIdItemList.xml => Category_childTitleOrIdItemList.xml} | 4 ++--
 bt5/erp5_dms/bt/revision                                      | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
 rename bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/{Category_childShortTitleOrIdItemList.xml => Category_childTitleOrIdItemList.xml} (97%)

diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_hashBaseCategoryList.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_hashBaseCategoryList.xml
index 7e5928a8fd..fb259d70fa 100644
--- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_hashBaseCategoryList.xml
+++ b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_hashBaseCategoryList.xml
@@ -79,7 +79,7 @@ from Products.ERP5Type.Cache import CachingMethod\n
 \n
 def cached_DMSGetItemList(base_category):\n
     basecatobject = context.portal_categories.resolveCategory(base_category)\n
-    return basecatobject.Category_childShortTitleOrIdItemList()\n
+    return basecatobject.Category_childTitleOrIdItemList()\n
 \n
 cached_DMSGetItemList = CachingMethod(cached_DMSGetItemList, id=\'DMGetItemListCachedMethodWhatever\')\n
 \n
diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/Category_childShortTitleOrIdItemList.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/Category_childTitleOrIdItemList.xml
similarity index 97%
rename from bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/Category_childShortTitleOrIdItemList.xml
rename to bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/Category_childTitleOrIdItemList.xml
index 1920d90bf0..d4a7f1159f 100644
--- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/Category_childShortTitleOrIdItemList.xml
+++ b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/Category_childTitleOrIdItemList.xml
@@ -78,7 +78,7 @@ use with care and caching, may be expensive\n
 labelcache = {} # so that we do not resolve all items in every path\n
 \n
 def getLabel(c):\n
-  return c.getShortTitle() or c.getId()\n
+  return c.getTitleOrId()\n
 \n
 def makeLogicalPathItem(o):\n
   retval = []\n
@@ -174,7 +174,7 @@ return children\n
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>Category_childShortTitleOrIdItemList</string> </value>
+            <value> <string>Category_childTitleOrIdItemList</string> </value>
         </item>
         <item>
             <key> <string>warnings</string> </key>
diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision
index a9d3bc092c..19afd4ebd9 100644
--- a/bt5/erp5_dms/bt/revision
+++ b/bt5/erp5_dms/bt/revision
@@ -1 +1 @@
-523
\ No newline at end of file
+527
\ No newline at end of file
-- 
2.30.9