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 @@ ...@@ -71,16 +71,15 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
"""\n """\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 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 """\n
# Initialise result\n # Initialise result\n
sub_field_list = []\n sub_field_list = []\n
\n \n
# Maximum size of the MultiListField\n # Maximum size of the MultiListField\n
default_sub_field_property_dict.update({\n default_sub_field_property_dict.update({\n
\'title\': \'Publication\',\n
\'required\': 0,\n \'required\': 0,\n
\'field_type\': \'ListField\',\n \'field_type\': \'ListField\',\n
\'size\': 1,\n \'size\': 1,\n
...@@ -96,7 +95,6 @@ for i in range(1):\n ...@@ -96,7 +95,6 @@ for i in range(1):\n
z += 1\n z += 1\n
sub_field_list.append(new_dict)\n sub_field_list.append(new_dict)\n
\n \n
\n
section_list = context.getPublicationSectionList()\n section_list = context.getPublicationSectionList()\n
section_list.reverse()\n section_list.reverse()\n
for value in section_list:\n for value in section_list:\n
...@@ -107,7 +105,7 @@ for value in section_list:\n ...@@ -107,7 +105,7 @@ for value in section_list:\n
z += 1\n z += 1\n
sub_field_list.append(new_dict)\n sub_field_list.append(new_dict)\n
\n \n
new_dict[\'title\'] = \'Publication Section\'\n new_dict[\'title\'] = default_sub_field_property_dict[\'title\']\n
sub_field_list.reverse()\n sub_field_list.reverse()\n
return sub_field_list\n return sub_field_list\n
...@@ -171,6 +169,7 @@ return sub_field_list\n ...@@ -171,6 +169,7 @@ return sub_field_list\n
<string>context</string> <string>context</string>
<string>section_list</string> <string>section_list</string>
<string>value</string> <string>value</string>
<string>_getitem_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<list> <list>
<string>left (Page Properties)</string> <string>left (Page Properties)</string>
<string>right (Publication)</string> <string>right (Publication)</string>
<string>center</string> <string>center (Description)</string>
<string>bottom (Content)</string> <string>bottom (Content)</string>
</list> </list>
</value> </value>
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>center</string> </key> <key> <string>center (Description)</string> </key>
<value> <value>
<list> <list>
<string>my_description</string> <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