Add appservice package and move ApplicationService into it.

This commit is contained in:
Kegan Dougal 2015-02-03 14:44:16 +00:00
parent f2c039bfb9
commit 94a5db9f4d
4 changed files with 138 additions and 105 deletions

View file

@ -17,7 +17,7 @@ from twisted.internet import defer
from ._base import BaseHandler
from synapse.api.errors import Codes, StoreError, SynapseError
from synapse.storage.appservice import ApplicationService
from synapse.appservice import ApplicationService
import logging
@ -96,6 +96,7 @@ class ApplicationServicesHandler(BaseHandler):
restrict_to=ApplicationService.NS_USERS
)
for user_service in user_query_services:
# this needs to block XXX: Need to feed response back to caller
pass # TODO poke User Query API
# Do we know this room alias exists? If not, poke the room alias query
@ -107,6 +108,7 @@ class ApplicationServicesHandler(BaseHandler):
restrict_to=ApplicationService.NS_ALIASES
)
for alias_service in alias_query_services:
# this needs to block XXX: Need to feed response back to caller
pass # TODO poke Room Alias Query API
# Fork off pushes to these services - XXX First cut, best effort