Commit 88887a7f authored by Fabien Morin's avatar Fabien Morin

remove all_languages default arguments. Here it's useless, we can use **kw to...

remove all_languages default arguments. Here it's useless, we can use **kw to pass it. And default value is the same in called script (False).
This also permit to fix this understandable comment.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26662 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 160d47fe
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string># In normal web sites pages, if nothing is specify, only in a selected language should be displayed.\n <value> <string># This script returns a list of document values\n
return context.WebSection_getDocumentValueListBase(all_languages=all_languages, **kw)\n return context.WebSection_getDocumentValueListBase(**kw)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -65,7 +65,7 @@ return context.WebSection_getDocumentValueListBase(all_languages=all_languages, ...@@ -65,7 +65,7 @@ return context.WebSection_getDocumentValueListBase(all_languages=all_languages,
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>all_languages=False, **kw</string> </value> <value> <string>**kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -85,13 +85,12 @@ return context.WebSection_getDocumentValueListBase(all_languages=all_languages, ...@@ -85,13 +85,12 @@ return context.WebSection_getDocumentValueListBase(all_languages=all_languages,
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>1</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>all_languages</string>
<string>kw</string> <string>kw</string>
<string>_apply_</string> <string>_apply_</string>
<string>_getattr_</string> <string>_getattr_</string>
...@@ -107,9 +106,7 @@ return context.WebSection_getDocumentValueListBase(all_languages=all_languages, ...@@ -107,9 +106,7 @@ return context.WebSection_getDocumentValueListBase(all_languages=all_languages,
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple> <none/>
<int>0</int>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
793 794
\ 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