summaryrefslogtreecommitdiff
path: root/service/pixelated/resources/root_resource.py
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2015-02-13 10:27:51 -0200
committerDuda Dornelles <ddornell@thoughtworks.com>2015-02-13 12:47:12 -0200
commitc52ce25ac49cdfdc1791bcb65c5262aec63dadbd (patch)
treed7c5ce18b12f9a86f4a0cb09cc163d4534ddbbeb /service/pixelated/resources/root_resource.py
parent2e88b9d9d68bae91cfde466edfc027f19f7c74b8 (diff)
Adding encryption info for a recipient when composing.
To do that we look into the KeysResouce to see if we will find a key for each address entered for the recipients.
Diffstat (limited to 'service/pixelated/resources/root_resource.py')
-rw-r--r--service/pixelated/resources/root_resource.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/service/pixelated/resources/root_resource.py b/service/pixelated/resources/root_resource.py
index 71fe1fce..b45bd00f 100644
--- a/service/pixelated/resources/root_resource.py
+++ b/service/pixelated/resources/root_resource.py
@@ -6,6 +6,7 @@ from pixelated.resources.mail_resource import MailResource
from pixelated.resources.mails_resource import MailsResource
from pixelated.resources.sync_info_resource import SyncInfoResource
from pixelated.resources.tags_resource import TagsResource
+from pixelated.resources.keys_resource import KeysResource
from twisted.web.resource import Resource
from twisted.web.static import File
@@ -21,8 +22,9 @@ class RootResource(Resource):
return self
return Resource.getChild(self, path, request)
- def initialize(self, querier, search_engine, mail_service, draft_service):
+ def initialize(self, querier, 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('contacts', ContactsResource(search_engine))
self.putChild('features', FeaturesResource())