-
Notifications
You must be signed in to change notification settings - Fork 22
Plug in API Settings Storage
Tomas Machalek edited this page Apr 25, 2016
·
2 revisions
Plug-ins / [settings_storage]
- type: required
- interface: plugins.abstract.settings_storage.AbstractSettingsStorage
- client-side code: -
- purpose: user settings persistence
This plug-in allows users to store their application settings (e.g. concordance view options).
# AbstractSettingsStorage.save(user_id, data)
Saves user settings.
arguments:
- user_id -- database user id
- data -- a JSON-serializable dict
# AbstractSettingsStorage.load(user_id, current_settings=None)
Loads user data from storage.