You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The UI allows creating multiple CalDAV backends (and optionally giving them different, custom names), and they seem to work OK, but exiting and reopening GTG loses all but one backend of each kind.
The cause seems to be that the config file backends.conf has a single section per backend kind (i.e. one for backend_localfile and one for backend_caldav).
Maybe it would be enough to use backend IDs instead of backend names in backends.conf.
The text was updated successfully, but these errors were encountered:
This allows GTG to have multiple backends of one kind at the same time.
* GTG/backends/__init__.py (BackendFactory.get_saved_backends_list): Rename
`backend` to `backend_id` for clarity. Call `config.rename_backend_section` on
each backend for compatibility with previous versions of GTG.
* GTG/core/config.py (CoreConfig_.rename_backend_section): New function to
rename a config section (from backend name to backend ID).
(CoreConfig_.get_all_backends): Rename `backend` to `backend_id` for clarity.
* GTG/core/datastore.py (DataStore.save): Retrieve config section by backend id,
not by backend name.
Fixesgetting-things-gnome#930.
This allows GTG to have multiple backends of one kind at the same time.
* GTG/backends/__init__.py (BackendFactory.get_saved_backends_list): Rename
`backend` to `backend_id` for clarity. Call `config.rename_backend_section` on
each backend for compatibility with previous versions of GTG.
* GTG/core/config.py (CoreConfig_.rename_backend_section): New function to
rename a config section (from backend name to backend ID).
(CoreConfig_.get_all_backends): Rename `backend` to `backend_id` for clarity.
Fixesgetting-things-gnome#930.
The UI allows creating multiple CalDAV backends (and optionally giving them different, custom names), and they seem to work OK, but exiting and reopening GTG loses all but one backend of each kind.
The cause seems to be that the config file
backends.conf
has a single section per backend kind (i.e. one forbackend_localfile
and one forbackend_caldav
).Maybe it would be enough to use backend IDs instead of backend names in
backends.conf
.The text was updated successfully, but these errors were encountered: