Commit 6a04b330 authored by Ivan Tyagov's avatar Ivan Tyagov

Make it possible to control editable_mode (useful in redirect to document use case, thanks Fabien)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33149 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ab6dee00
...@@ -136,6 +136,7 @@ if redirect_to_document or redirect_url is not None:\n ...@@ -136,6 +136,7 @@ if redirect_to_document or redirect_url is not None:\n
if redirect_to_document and document is not None:\n if redirect_to_document and document is not None:\n
# explicitly required to view ingested document\n # explicitly required to view ingested document\n
context.REQUEST.set(\'portal_status_message\', message)\n context.REQUEST.set(\'portal_status_message\', message)\n
context.REQUEST.set(\'editable_mode\', editable_mode)\n
return document.view()\n return document.view()\n
elif redirect_url is not None:\n elif redirect_url is not None:\n
# redirect URL has been supplied by caller\n # redirect URL has been supplied by caller\n
...@@ -156,7 +157,7 @@ return document\n ...@@ -156,7 +157,7 @@ return document\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>file=None, url=None, portal_type=None, classification=None, synchronous_metadata_discovery=None, redirect_to_document=None, attach_document_to_context=False, use_context_for_container=False, redirect_url=None, **kw</string> </value> <value> <string>file=None, url=None, portal_type=None, classification=None, synchronous_metadata_discovery=None, redirect_to_document=None, attach_document_to_context=False, use_context_for_container=False, redirect_url=None, editable_mode = 1, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -176,7 +177,7 @@ return document\n ...@@ -176,7 +177,7 @@ return document\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>
...@@ -191,6 +192,7 @@ return document\n ...@@ -191,6 +192,7 @@ return document\n
<string>attach_document_to_context</string> <string>attach_document_to_context</string>
<string>use_context_for_container</string> <string>use_context_for_container</string>
<string>redirect_url</string> <string>redirect_url</string>
<string>editable_mode</string>
<string>kw</string> <string>kw</string>
<string>None</string> <string>None</string>
<string>MARKER</string> <string>MARKER</string>
...@@ -243,6 +245,7 @@ return document\n ...@@ -243,6 +245,7 @@ return document\n
<int>0</int> <int>0</int>
<int>0</int> <int>0</int>
<none/> <none/>
<int>1</int>
</tuple> </tuple>
</value> </value>
</item> </item>
......
82 85
\ 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