diff options
author | Kegan Dougal <kegan@matrix.org> | 2015-02-05 10:08:12 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2015-02-05 10:08:12 +0000 |
commit | 27091f146a0ebdbfe1ae7c5cd30de51515cfbebc (patch) | |
tree | f32ff280c60ccaf599c2ef053dd5c464e53e3854 /synapse/appservice/__init__.py | |
parent | Impl push_bulk function (diff) | |
download | synapse-27091f146a0ebdbfe1ae7c5cd30de51515cfbebc.tar.xz |
Add hs_token column and generate a different token f.e application service.
Diffstat (limited to 'synapse/appservice/__init__.py')
-rw-r--r-- | synapse/appservice/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/appservice/__init__.py b/synapse/appservice/__init__.py index 0c7f58574e..f7baf578f0 100644 --- a/synapse/appservice/__init__.py +++ b/synapse/appservice/__init__.py @@ -34,11 +34,13 @@ class ApplicationService(object): # values. NS_LIST = [NS_USERS, NS_ALIASES, NS_ROOMS] - def __init__(self, token, url=None, namespaces=None, txn_id=None): + def __init__(self, token, url=None, namespaces=None, hs_token=None, + txn_id=None): self.token = token self.url = url + self.hs_token = hs_token self.namespaces = self._check_namespaces(namespaces) - self.txn_id = None + self.txn_id = txn_id def _check_namespaces(self, namespaces): # Sanity check that it is of the form: |