Commit 32282e9b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

improve Predicate_view.

* group membership criteria related items.
* display base category id in membership values lists.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26569 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5d1b34a3
...@@ -75,7 +75,11 @@ for item in mixed_list:\n ...@@ -75,7 +75,11 @@ for item in mixed_list:\n
for x in fallback_category.getCategoryChildCompactLogicalPathItemList(base=1) if x[0]])\n for x in fallback_category.getCategoryChildCompactLogicalPathItemList(base=1) if x[0]])\n
break\n break\n
\n \n
category_list.extend(item_list)\n for i in item_list:\n
if i[0] != \'\':\n
category_list.append([\'%s/%s\' % (item, i[0]), i[1]])\n
else:\n
category_list.append(i)\n
\n \n
return category_list\n return category_list\n
</string> </value> </string> </value>
...@@ -131,6 +135,7 @@ return category_list\n ...@@ -131,6 +135,7 @@ return category_list\n
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>x</string> <string>x</string>
<string>i</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -58,7 +58,8 @@ ...@@ -58,7 +58,8 @@
<list> <list>
<string>left</string> <string>left</string>
<string>right</string> <string>right</string>
<string>center</string> <string>center left</string>
<string>center right</string>
<string>bottom</string> <string>bottom</string>
<string>hidden</string> <string>hidden</string>
</list> </list>
...@@ -77,7 +78,16 @@ ...@@ -77,7 +78,16 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>center</string> </key> <key> <string>center left</string> </key>
<value>
<list>
<string>my_membership_criterion_base_category_list</string>
<string>my_multimembership_criterion_base_category_list</string>
</list>
</value>
</item>
<item>
<key> <string>center right</string> </key>
<value> <value>
<list> <list>
<string>my_membership_criterion_category_list</string> <string>my_membership_criterion_category_list</string>
...@@ -99,7 +109,6 @@ ...@@ -99,7 +109,6 @@
<value> <value>
<list> <list>
<string>my_title</string> <string>my_title</string>
<string>my_criterion_property_list</string>
<string>my_string_index</string> <string>my_string_index</string>
<string>my_int_index</string> <string>my_int_index</string>
<string>my_test_method_id</string> <string>my_test_method_id</string>
...@@ -110,8 +119,7 @@ ...@@ -110,8 +119,7 @@
<key> <string>right</string> </key> <key> <string>right</string> </key>
<value> <value>
<list> <list>
<string>my_membership_criterion_base_category_list</string> <string>my_criterion_property_list</string>
<string>my_multimembership_criterion_base_category_list</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>5</int> </value> <value> <int>10</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
...@@ -261,11 +261,8 @@ ...@@ -261,11 +261,8 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<string>Products.Formulator.TALESField</string> <tuple/>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
1164 1165
\ 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