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

No category names tweaking here (it is implementation level).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12854 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8196cbad
...@@ -69,17 +69,17 @@ ...@@ -69,17 +69,17 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""\n <value> <string>"""\n
Used by parellel list field\n Used by parellel list field\n
Document_library/my_dms_category_list\n Document_library/my_dms_category_list\n
(see http://wiki.erp5.org/HowToConfigureParallelListField)\n (see http://wiki.erp5.org/HowToConfigureParallelListField)\n
To produce a tree we use Category_childShortTitleOrIdItemList\n To produce a tree we use getCategoryChildLogicalPathItemList\n
to display short title or id\n and we cache\n
"""\n """\n
from Products.ERP5Type.Cache import CachingMethod\n 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_childTitleOrIdItemList()\n return basecatobject.getCategoryChildLogicalPathItemList()\n
\n \n
cached_DMSGetItemList = CachingMethod(cached_DMSGetItemList, id=\'DMGetItemListCachedMethodWhatever\')\n cached_DMSGetItemList = CachingMethod(cached_DMSGetItemList, id=\'DMGetItemListCachedMethodWhatever\')\n
\n \n
......
532 535
\ 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