summaryrefslogtreecommitdiff
path: root/service/pixelated/resources/root_resource.py
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-06-09 17:33:06 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-06-09 17:33:06 -0300
commitb509ff2f5faa63cca507505ede3d6708bfc4a8fa (patch)
treed368dbf2caf89174bb0b79b1ce216ccef6041b8a /service/pixelated/resources/root_resource.py
parent7e05f1e58eaa37dc0de5b47ed10011a202d80ba6 (diff)
AttachmentsResource don't need querier anymore, RootResource doesn't need it too
Diffstat (limited to 'service/pixelated/resources/root_resource.py')
-rw-r--r--service/pixelated/resources/root_resource.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/service/pixelated/resources/root_resource.py b/service/pixelated/resources/root_resource.py
index 4c0c47ac..c1111269 100644
--- a/service/pixelated/resources/root_resource.py
+++ b/service/pixelated/resources/root_resource.py
@@ -21,10 +21,10 @@ class RootResource(Resource):
return self
return Resource.getChild(self, path, request)
- def initialize(self, querier, keymanager, search_engine, mail_service, draft_service):
+ def initialize(self, keymanager, search_engine, mail_service, draft_service):
self.putChild('assets', File(self._static_folder))
self.putChild('keys', KeysResource(keymanager))
- self.putChild('attachment', AttachmentsResource(querier))
+ self.putChild('attachment', AttachmentsResource(mail_service))
self.putChild('contacts', ContactsResource(search_engine))
self.putChild('features', FeaturesResource())
self.putChild('tags', TagsResource(search_engine))
@@ -32,7 +32,6 @@ class RootResource(Resource):
self.putChild('mail', MailResource(mail_service))
def _get_static_folder(self):
-
static_folder = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", "..", "web-ui", "app"))
# this is a workaround for packaging
if not os.path.exists(static_folder):