Commit 3bdbc1c0 authored by Bartek Górny's avatar Bartek Górny

category title in parallel list field (#2)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10298 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0c17ef26
...@@ -76,11 +76,11 @@ default_sub_field_property_dict[\'size\']=1\n ...@@ -76,11 +76,11 @@ default_sub_field_property_dict[\'size\']=1\n
\n \n
for base_category in item_list:\n for base_category in item_list:\n
if not sub_field_dict.has_key(base_category):\n if not sub_field_dict.has_key(base_category):\n
basecatobject=context.portal_categories.resolveCategory(base_category)\n
sub_field_property_dict=default_sub_field_property_dict.copy()\n sub_field_property_dict=default_sub_field_property_dict.copy()\n
sub_field_property_dict[\'key\']=base_category\n sub_field_property_dict[\'key\']=base_category\n
sub_field_property_dict[\'title\']=base_category\n sub_field_property_dict[\'title\']=basecatobject.getTitleOrId()\n
context.log(base_category)\n sub_field_property_dict[\'item_list\']=basecatobject.getCategoryChildLogicalPathItemList()\n
sub_field_property_dict[\'item_list\']=context.portal_categories.resolveCategory(base_category).getCategoryChildLogicalPathItemList()\n
sub_field_property_dict[\'value\']=context.aq_parent.aq_parent.getProperty(base_category)\n sub_field_property_dict[\'value\']=context.aq_parent.aq_parent.getProperty(base_category)\n
\n \n
sub_field_dict[base_category]=sub_field_property_dict\n sub_field_dict[base_category]=sub_field_property_dict\n
...@@ -138,8 +138,9 @@ return sub_field_dict.values()\n ...@@ -138,8 +138,9 @@ return sub_field_dict.values()\n
<string>_getiter_</string> <string>_getiter_</string>
<string>base_category</string> <string>base_category</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>sub_field_property_dict</string>
<string>context</string> <string>context</string>
<string>basecatobject</string>
<string>sub_field_property_dict</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
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