CalDAV: How to rename a source?
How to rename an existing source using a CalDAV backend (a Nextcloud backend to be specific)?
I'm trying to add this feature to the elementary Tasks app - but I can't find a way to rename the source in the backend as well. While EDS does rename the source locally, it refuses to do so in the Nextcloud backend. The approach currently used is:
source.display_name = editable_title.text; // set new name
if (source.has_extension (E.SOURCE_EXTENSION_WEBDAV_BACKEND)) {
unowned E.SourceWebdav source_webdav_extension = (E.SourceWebdav) source.get_extension (E.SOURCE_EXTENSION_WEBDAV_BACKEND);
source_webdav_extension.display_name = editable_title.text; // set the new name for WebDAV
}
registry.commit_source_sync (source, null);
FWIW: I tried source.write
as well - with the same result (the new name is not reflected to the backend).
This question was already asked in in IRC (#evolution) and at discourse.gnome.org - without any success unfortunately. See this PR for the current state of work.