[gnome-todo] storage-goa: use webdav backend
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] storage-goa: use webdav backend
- Date: Thu, 27 Aug 2015 02:00:04 +0000 (UTC)
commit c1ddd8ecb8b1b6afa2cac157cfcce4421f8ac3f7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Aug 26 16:54:32 2015 -0300
storage-goa: use webdav backend
While EDS doesn't have proper WebDAV support, it
can't create new lists (agendas, tasklists and
notes). Because of that, we have to deal with it,
since it's too late to try to create a new webdav
library from scratch.
src/storage/gtd-storage-goa.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/storage/gtd-storage-goa.c b/src/storage/gtd-storage-goa.c
index 24fec3c..7408688 100644
--- a/src/storage/gtd-storage-goa.c
+++ b/src/storage/gtd-storage-goa.c
@@ -83,13 +83,16 @@ gtd_storage_goa_create_list (GtdStorage *storage,
/* Some properties */
e_source_set_display_name (source, name);
- e_source_set_parent (source, self->parent_source);
- g_message ("parent source: %s", self->parent_source);
+ /* FIXME: while Evolution-Data-Server doesn't support creating remote
+ * sources that are children of the GOA source, we'll have to make it
+ * a plain webdav source.
+ */
+ e_source_set_parent (source, "webdav-stub");
/* Mark it as a TASKLIST */
extension = e_source_get_extension (source, E_SOURCE_EXTENSION_TASK_LIST);
- e_source_backend_set_backend_name (E_SOURCE_BACKEND (extension), goa_account_get_provider_type (account));
+ e_source_backend_set_backend_name (E_SOURCE_BACKEND (extension), "webdav");
/* Make it a WebDAV source */
extension = e_source_get_extension (source, E_SOURCE_EXTENSION_WEBDAV_BACKEND);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]