summaryrefslogtreecommitdiff
path: root/src/leap/soledad/server/entrypoint.py
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-08-23 05:25:54 -0300
committerdrebs <drebs@riseup.net>2017-09-05 11:08:47 -0300
commit90685484c829d98db74dfd8e1cf01ed418f3c423 (patch)
tree5cb70058175be25f56480b33364df3cb137b4692 /src/leap/soledad/server/entrypoint.py
parent54f28b30c81da5f699cc90846f182377d9efb11a (diff)
[refactor] add localhost endpoint to server tac
-- Related: #8867
Diffstat (limited to 'src/leap/soledad/server/entrypoint.py')
-rw-r--r--src/leap/soledad/server/entrypoint.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/leap/soledad/server/entrypoint.py b/src/leap/soledad/server/entrypoint.py
index 9b9a5e66..7115007b 100644
--- a/src/leap/soledad/server/entrypoint.py
+++ b/src/leap/soledad/server/entrypoint.py
@@ -44,7 +44,14 @@ class SoledadEntrypoint(SoledadSession):
SoledadSession.__init__(self, portal)
+class LocalServicesEntrypoint(SoledadSession):
+
+ def __init__(self):
+ portal = portalFactory(public=False)
+ SoledadSession.__init__(self, portal)
+
# see the comments in application.py recarding why couch state has to be
# initialized when the reactor is running
+
reactor.callWhenRunning(init_couch_state, conf)