mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Add stub ApplicationServiceApi and glue it with the handler.
This commit is contained in:
parent
94a5db9f4d
commit
17753f0c20
4 changed files with 39 additions and 4 deletions
|
@ -31,10 +31,11 @@ class ApplicationService(object):
|
|||
# values.
|
||||
NS_LIST = [NS_USERS, NS_ALIASES, NS_ROOMS]
|
||||
|
||||
def __init__(self, token, url=None, namespaces=None):
|
||||
def __init__(self, token, url=None, namespaces=None, txn_id=None):
|
||||
self.token = token
|
||||
self.url = url
|
||||
self.namespaces = self._check_namespaces(namespaces)
|
||||
self.txn_id = None
|
||||
|
||||
def _check_namespaces(self, namespaces):
|
||||
# Sanity check that it is of the form:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue