Commit 5eaf3d67 authored by Ivan Tyagov's avatar Ivan Tyagov

Make sure cloudoo is available. this check is required ONLY due to

 unit test nature where a bt5 with a data content which is to be reindexed
is installed BEFORE the real cloudoo is setup in preferences.
parent 1ab94666
...@@ -54,7 +54,13 @@ ...@@ -54,7 +54,13 @@
portal_id = portal.getId()\n portal_id = portal.getId()\n
MARKER = (None, \'\',)\n MARKER = (None, \'\',)\n
\n \n
for index_uid in range(len(uid)):\n address = portal.portal_preferences.getPreferredOoodocServerAddress()\n
port = portal.portal_preferences.getPreferredOoodocServerPortNumber()\n
# make sure cloudoo is available. this check is required ONLY due to\n
# unit test nature where a bt5 with a data content which is to be reindexed \n
# is installed BEFORE the real cloudoo is setup in preferences.\n
if address not in MARKER and port not in MARKER:\n
for index_uid in range(len(uid)):\n
document_relative_url = getPath[index_uid].replace("/%s/" %portal_id, "")\n document_relative_url = getPath[index_uid].replace("/%s/" %portal_id, "")\n
document = portal.restrictedTraverse(document_relative_url)\n document = portal.restrictedTraverse(document_relative_url)\n
if getattr(document, "convert", None) is not None and \\\n if getattr(document, "convert", None) is not None and \\\n
......
3 4
\ 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