Commit 2d1074a2 authored by Jérome Perrin's avatar Jérome Perrin

Make it possible to change the target language when printing

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18049 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4dfc844f
...@@ -66,8 +66,11 @@ ...@@ -66,8 +66,11 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""This is the action for the Base_viewPrintDialog.\n <value> <string>"""This is the action for the Base_viewPrintDialog.\n
\n
"""\n """\n
\n
if target_language:\n
container.REQUEST[\'AcceptLanguage\'].set(target_language, 10)\n
\n
if print_mode == \'list_view\':\n if print_mode == \'list_view\':\n
return context.Folder_viewContentListReport()\n return context.Folder_viewContentListReport()\n
\n \n
...@@ -94,7 +97,7 @@ return getattr(context, form_id)()\n ...@@ -94,7 +97,7 @@ return getattr(context, form_id)()\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>form_id, print_mode=\'\', **kw</string> </value> <value> <string>form_id, print_mode=\'\', target_language=\'\', **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -114,7 +117,7 @@ return getattr(context, form_id)()\n ...@@ -114,7 +117,7 @@ return getattr(context, form_id)()\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>2</int> </value> <value> <int>3</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
...@@ -122,8 +125,11 @@ return getattr(context, form_id)()\n ...@@ -122,8 +125,11 @@ return getattr(context, form_id)()\n
<tuple> <tuple>
<string>form_id</string> <string>form_id</string>
<string>print_mode</string> <string>print_mode</string>
<string>target_language</string>
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>_getitem_</string>
<string>container</string>
<string>context</string> <string>context</string>
<string>getattr</string> <string>getattr</string>
</tuple> </tuple>
...@@ -139,6 +145,7 @@ return getattr(context, form_id)()\n ...@@ -139,6 +145,7 @@ return getattr(context, form_id)()\n
<value> <value>
<tuple> <tuple>
<string></string> <string></string>
<string></string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -78,16 +78,17 @@ ...@@ -78,16 +78,17 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>left</string> </key> <key> <string>left</string> </key>
<value> <value>
<list> <list>
<string>your_landscape</string> <string>your_landscape</string>
<string>your_target_language</string>
<string>your_print_mode</string> <string>your_print_mode</string>
</list> </list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>right</string> </key> <key> <string>right</string> </key>
<value> <value>
<list> <list>
<string>your_portal_skin</string> <string>your_portal_skin</string>
......
631 632
\ 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