Commit 9a9c8f7b authored by Jean-Paul Smets's avatar Jean-Paul Smets

More generic script for hash. Some desciptors in groups for web page.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13163 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d530cca
......@@ -71,16 +71,15 @@
<value> <string encoding="cdata"><![CDATA[
"""\n
This script repeats publication section items\n
This script repeats publication section category items\n
in such way that it is possible to select multiple\n
publication sections for a single web page.\n
publication section categories for the same document\n
"""\n
# Initialise result\n
sub_field_list = []\n
\n
# Maximum size of the MultiListField\n
default_sub_field_property_dict.update({\n
\'title\': \'Publication\',\n
\'required\': 0,\n
\'field_type\': \'ListField\',\n
\'size\': 1,\n
......@@ -96,7 +95,6 @@ for i in range(1):\n
z += 1\n
sub_field_list.append(new_dict)\n
\n
\n
section_list = context.getPublicationSectionList()\n
section_list.reverse()\n
for value in section_list:\n
......@@ -107,7 +105,7 @@ for value in section_list:\n
z += 1\n
sub_field_list.append(new_dict)\n
\n
new_dict[\'title\'] = \'Publication Section\'\n
new_dict[\'title\'] = default_sub_field_property_dict[\'title\']\n
sub_field_list.reverse()\n
return sub_field_list\n
......@@ -171,6 +169,7 @@ return sub_field_list\n
<string>context</string>
<string>section_list</string>
<string>value</string>
<string>_getitem_</string>
</tuple>
</value>
</item>
......
......@@ -63,7 +63,7 @@
<list>
<string>left (Page Properties)</string>
<string>right (Publication)</string>
<string>center</string>
<string>center (Description)</string>
<string>bottom (Content)</string>
</list>
</value>
......@@ -81,7 +81,7 @@
</value>
</item>
<item>
<key> <string>center</string> </key>
<key> <string>center (Description)</string> </key>
<value>
<list>
<string>my_description</string>
......
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