Commit 21f65c74 authored by Romain Courteaud's avatar Romain Courteaud

Allow to configure all_versions and all_languages parameters with getLayoutProperty.

Keep compatibility with the script WebSection_getDocumentValueList which was used to do this configuration.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27818 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aebe8f27
No related merge requests found
...@@ -107,6 +107,11 @@ try:\n ...@@ -107,6 +107,11 @@ try:\n
\n \n
# First find the Web Section or Web Site we belong to\n # First find the Web Section or Web Site we belong to\n
current_section = context.getWebSectionValue()\n current_section = context.getWebSectionValue()\n
\n
if all_versions is None:\n
all_versions = context.getLayoutProperty(\'layout_all_versions\', default=False)\n
if all_languages is None:\n
all_languages = context.getLayoutProperty(\'layout_all_languages\', default=False)\n
\n \n
# Build the list of parameters\n # Build the list of parameters\n
if language is None:\n if language is None:\n
...@@ -146,7 +151,7 @@ except Unauthorized:\n ...@@ -146,7 +151,7 @@ except Unauthorized:\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>language=None, validation_state=None, all_languages=False, all_versions=None, src__=0, **kw</string> </value> <value> <string>language=None, validation_state=None, all_languages=None, all_versions=None, src__=0, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -186,6 +191,7 @@ except Unauthorized:\n ...@@ -186,6 +191,7 @@ except Unauthorized:\n
<string>context</string> <string>context</string>
<string>current_section</string> <string>current_section</string>
<string>None</string> <string>None</string>
<string>False</string>
<string>_write_</string> <string>_write_</string>
<string>_apply_</string> <string>_apply_</string>
</tuple> </tuple>
...@@ -202,7 +208,7 @@ except Unauthorized:\n ...@@ -202,7 +208,7 @@ except Unauthorized:\n
<tuple> <tuple>
<none/> <none/>
<none/> <none/>
<int>0</int> <none/>
<none/> <none/>
<int>0</int> <int>0</int>
</tuple> </tuple>
......
827 828
\ 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