summaryrefslogtreecommitdiff
path: root/service/pixelated/config
diff options
context:
space:
mode:
authorBruno Wagner <bwagner@riseup.net>2016-01-12 17:24:31 -0200
committerBruno Wagner <bwagner@riseup.net>2016-01-12 17:24:31 -0200
commit38deb297c4bb909ea496aa5d4de19069d25b6a6f (patch)
treef4bac634389db7df80c20d38ea3d5ca7daccd8d6 /service/pixelated/config
parent5cf360add8cdbbdc4ca1c620d5c04a8af8956ace (diff)
Issue #577 - Added namespace to search index path
Diffstat (limited to 'service/pixelated/config')
-rw-r--r--service/pixelated/config/services.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/service/pixelated/config/services.py b/service/pixelated/config/services.py
index b8b355b0..0b9b98df 100644
--- a/service/pixelated/config/services.py
+++ b/service/pixelated/config/services.py
@@ -23,6 +23,7 @@ class Services(object):
search_index_storage_key = self.setup_search_index_storage_key(leap_session.soledad)
yield self.setup_search_engine(
leap_home,
+ leap_session.user_auth.uuid,
search_index_storage_key)
self.wrap_mail_store_with_indexing_mail_store(leap_session)
@@ -48,11 +49,11 @@ class Services(object):
self.search_engine.index_mails(all_mails)
@defer.inlineCallbacks
- def setup_search_engine(self, leap_home, search_index_storage_key):
+ def setup_search_engine(self, leap_home, namespace, search_index_storage_key):
key_unicode = yield search_index_storage_key.get_or_create_key()
key = str(key_unicode)
print 'The key len is: %s' % len(key)
- search_engine = SearchEngine(key, agent_home=leap_home)
+ search_engine = SearchEngine(key, namespace, agent_home=leap_home)
self.search_engine = search_engine
def setup_mail_service(self, leap_session, search_engine):