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 @@
<item>
<key> <string>_body</string> </key>
<value> <string>"""This is the action for the Base_viewPrintDialog.\n
\n
"""\n
\n
if target_language:\n
container.REQUEST[\'AcceptLanguage\'].set(target_language, 10)\n
\n
if print_mode == \'list_view\':\n
return context.Folder_viewContentListReport()\n
\n
......@@ -94,7 +97,7 @@ return getattr(context, form_id)()\n
</item>
<item>
<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>
<key> <string>errors</string> </key>
......@@ -114,7 +117,7 @@ return getattr(context, form_id)()\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>2</int> </value>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
......@@ -122,8 +125,11 @@ return getattr(context, form_id)()\n
<tuple>
<string>form_id</string>
<string>print_mode</string>
<string>target_language</string>
<string>kw</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>container</string>
<string>context</string>
<string>getattr</string>
</tuple>
......@@ -139,6 +145,7 @@ return getattr(context, form_id)()\n
<value>
<tuple>
<string></string>
<string></string>
</tuple>
</value>
</item>
......
......@@ -78,16 +78,17 @@
<value>
<dictionary>
<item>
<key> <string>left</string> </key>
<key> <string>left</string> </key>
<value>
<list>
<string>your_landscape</string>
<string>your_target_language</string>
<string>your_print_mode</string>
</list>
</value>
</item>
<item>
<key> <string>right</string> </key>
<key> <string>right</string> </key>
<value>
<list>
<string>your_portal_skin</string>
......
631
\ No newline at end of file
632
\ 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