Commit 0f57ce70 authored by Jérome Perrin's avatar Jérome Perrin

call methods on the preferences tool, not on the active preference

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34638 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 930ea683
...@@ -60,19 +60,11 @@ MARKER = [\'\', None]\n ...@@ -60,19 +60,11 @@ MARKER = [\'\', None]\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
portal_contributions = portal.portal_contributions\n portal_contributions = portal.portal_contributions\n
\n \n
system_preference = portal.portal_preferences.getActiveSystemPreference()\n
if synchronous_metadata_discovery is None:\n if synchronous_metadata_discovery is None:\n
if system_preference is not None:\n synchronous_metadata_discovery = portal.portal_preferences.isPreferredSynchronousMetadataDiscovery(False)\n
# not specified, fallback to site system preference configuration\n
synchronous_metadata_discovery = system_preference.isPreferredSynchronousMetadataDiscovery()\n
else:\n
synchronous_metadata_discovery = False\n
\n \n
if redirect_to_document is None:\n if redirect_to_document is None:\n
if system_preference is not None:\n redirect_to_document = portal.portal_preferences.isPreferredRedirectToDocument(False)\n
redirect_to_document = system_preference.isPreferredRedirectToDocument()\n
else:\n
redirect_to_document = False\n
\n \n
document_kw = {}\n document_kw = {}\n
if use_context_for_container:\n if use_context_for_container:\n
...@@ -200,7 +192,6 @@ return document\n ...@@ -200,7 +192,6 @@ return document\n
<string>context</string> <string>context</string>
<string>portal</string> <string>portal</string>
<string>portal_contributions</string> <string>portal_contributions</string>
<string>system_preference</string>
<string>False</string> <string>False</string>
<string>document_kw</string> <string>document_kw</string>
<string>_write_</string> <string>_write_</string>
......
87 89
\ 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