Commit 1b96167a authored by Ivan Tyagov's avatar Ivan Tyagov

Use System Preference for default value of synchronous_metadata_discovery in...

Use System Preference for default value of synchronous_metadata_discovery in case it is not specified by caller.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32940 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04d0314d
...@@ -60,6 +60,10 @@ MARKER = [\'\', None]\n ...@@ -60,6 +60,10 @@ 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
if synchronous_metadata_discovery is None:\n
# not specified, fallback to site system preference configuration\n
synchronous_metadata_discovery = portal.portal_preferences.getActiveSystemPreference().isPreferredSynchronousMetadataDiscovery()\n
\n
document_kw = {}\n document_kw = {}\n
if use_context_for_container:\n if use_context_for_container:\n
document_kw[\'container_path\'] = context.getRelativeUrl()\n document_kw[\'container_path\'] = context.getRelativeUrl()\n
...@@ -140,7 +144,7 @@ return document\n ...@@ -140,7 +144,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=False, redirect_to_document=False, 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=False, attach_document_to_context=False, use_context_for_container=False, redirect_url=None, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -220,7 +224,7 @@ return document\n ...@@ -220,7 +224,7 @@ return document\n
<none/> <none/>
<none/> <none/>
<none/> <none/>
<int>0</int> <none/>
<int>0</int> <int>0</int>
<int>0</int> <int>0</int>
<int>0</int> <int>0</int>
......
66 69
\ 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