Commit 7c5d6d3a authored by Jérome Perrin's avatar Jérome Perrin

after creating a new file, stay on the same tab

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26798 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0977c87c
...@@ -89,7 +89,7 @@ if file.filename not in [\'\', None]:\n ...@@ -89,7 +89,7 @@ if file.filename not in [\'\', None]:\n
is_authorized = 0\n is_authorized = 0\n
\n \n
if not is_authorized:\n if not is_authorized:\n
return context.Base_redirect(\n return context.Base_redirect(form_id,\n
keep_items={\'portal_status_message\':\n keep_items={\'portal_status_message\':\n
translateString(\n translateString(\n
"You are not allowed to create this object.")})\n "You are not allowed to create this object.")})\n
...@@ -103,7 +103,7 @@ if file.filename not in [\'\', None]:\n ...@@ -103,7 +103,7 @@ if file.filename not in [\'\', None]:\n
return document.Base_redirect(\'view\', \n return document.Base_redirect(\'view\', \n
keep_items=dict(portal_status_message=message))\n keep_items=dict(portal_status_message=message))\n
else:\n else:\n
return context.Base_redirect(\'view\', \n return context.Base_redirect(form_id, \n
keep_items=dict(portal_status_message=message))\n keep_items=dict(portal_status_message=message))\n
</string> </value> </string> </value>
</item> </item>
...@@ -115,7 +115,7 @@ if file.filename not in [\'\', None]:\n ...@@ -115,7 +115,7 @@ if file.filename not in [\'\', None]:\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>portal_type, title, reference, short_title, language, version, description, file, form_id=\'view\', **kw</string> </value> <value> <string>form_id=\'view\', portal_type, title, reference, short_title, language, version, description, file, form_id=\'view\', **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -135,12 +135,13 @@ if file.filename not in [\'\', None]:\n ...@@ -135,12 +135,13 @@ if file.filename not in [\'\', None]:\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>9</int> </value> <value> <int>10</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>form_id</string>
<string>portal_type</string> <string>portal_type</string>
<string>title</string> <string>title</string>
<string>reference</string> <string>reference</string>
...@@ -185,6 +186,15 @@ if file.filename not in [\'\', None]:\n ...@@ -185,6 +186,15 @@ if file.filename not in [\'\', None]:\n
<value> <value>
<tuple> <tuple>
<string>view</string> <string>view</string>
<none/>
<none/>
<none/>
<none/>
<none/>
<none/>
<none/>
<none/>
<string>view</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
595 596
\ 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