diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-07-21 11:45:29 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-08-03 21:06:50 +0300 |
commit | 7a6bc2f7749c10c1d3344ea0196e81ae95b7f0d7 (patch) | |
tree | e52472ac9665bc21886ccf27b7a79e76079d6afe /ick2/apibase.py | |
parent | 4f2207571928dc685102e3b3ff55e79cd3d46b6d (diff) | |
download | ick2-7a6bc2f7749c10c1d3344ea0196e81ae95b7f0d7.tar.gz |
Add: TokenGetter
Diffstat (limited to 'ick2/apibase.py')
-rw-r--r-- | ick2/apibase.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ick2/apibase.py b/ick2/apibase.py index 46c17cf..0537b6b 100644 --- a/ick2/apibase.py +++ b/ick2/apibase.py @@ -26,6 +26,10 @@ class APIbase: isinstance(state, ick2.MemoryStore) or isinstance(state, ick2.MuckStore)) self._trans = ick2.TransactionalState(state) + self._token_getter = None + + def set_token_getter(self, getter): # pragma: no cover + self._token_getter = getter def get_routes(self, path): resource_path = '{}/<name:re:[^/+][^/]*?(/[^/+][^/]*?)*>'.format(path) |