Commit cddf8c23 authored by Bartek Górny's avatar Bartek Górny

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
parent cfc73c32
...@@ -79,7 +79,7 @@ from Products.ERP5Type.Cache import CachingMethod\n ...@@ -79,7 +79,7 @@ from Products.ERP5Type.Cache import CachingMethod\n
\n \n
def cached_DMSGetItemList(base_category):\n def cached_DMSGetItemList(base_category):\n
basecatobject = context.portal_categories.resolveCategory(base_category)\n basecatobject = context.portal_categories.resolveCategory(base_category)\n
return basecatobject.Category_childShortTitleOrIdItemList()\n return basecatobject.Category_childTitleOrIdItemList()\n
\n \n
cached_DMSGetItemList = CachingMethod(cached_DMSGetItemList, id=\'DMGetItemListCachedMethodWhatever\')\n cached_DMSGetItemList = CachingMethod(cached_DMSGetItemList, id=\'DMGetItemListCachedMethodWhatever\')\n
\n \n
......
...@@ -78,7 +78,7 @@ use with care and caching, may be expensive\n ...@@ -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 labelcache = {} # so that we do not resolve all items in every path\n
\n \n
def getLabel(c):\n def getLabel(c):\n
return c.getShortTitle() or c.getId()\n return c.getTitleOrId()\n
\n \n
def makeLogicalPathItem(o):\n def makeLogicalPathItem(o):\n
retval = []\n retval = []\n
...@@ -174,7 +174,7 @@ return children\n ...@@ -174,7 +174,7 @@ return children\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Category_childShortTitleOrIdItemList</string> </value> <value> <string>Category_childTitleOrIdItemList</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
523 527
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment