[folks] Make the EDS backend's system address book the default writeable



commit c02fb2a0775449133a9faa9d26cc486cf8ce4683
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Sat Aug 13 12:18:29 2011 +0200

    Make the EDS backend's system address book the default writeable
    
    Closes: bgo#648818 - Support the EDS backend being a primary

 NEWS                             |    1 +
 folks/individual-aggregator.vala |    7 ++++++-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 3212bc4..7e5bce9 100644
--- a/NEWS
+++ b/NEWS
@@ -46,6 +46,7 @@ Bugs fixed:
 * Bug 655921 â Change RoleDetails.roles to support vCard-like arbitrary
   parameters
 * Bug 655922 â Rebase UrlDetails.urls upon an AbstractFieldDetails-derived class
+* Bug 648818 â Support the EDS backend being a primary
 
 API changes:
 * Swf.Persona retains and exposes its libsocialweb Contact
diff --git a/folks/individual-aggregator.vala b/folks/individual-aggregator.vala
index e42715c..2fe0eea 100644
--- a/folks/individual-aggregator.vala
+++ b/folks/individual-aggregator.vala
@@ -89,7 +89,7 @@ public class Folks.IndividualAggregator : Object
    *
    * - the FOLKS_WRITEABLE_STORE env var (mostly for debugging)
    * - the GConf key set in _FOLKS_CONFIG_KEY (system set store)
-   * - going with the `key-file` store as the fall-back option
+   * - going with the `key-file` or `eds` store as the fall-back option
    *
    * @since 0.5.0
    */
@@ -190,8 +190,13 @@ public class Folks.IndividualAggregator : Object
         }
       else
         {
+#if ENABLE_EDS
+          this._configured_writeable_store_type_id = "eds";
+          this._configured_writeable_store_id = "system";
+#else
           this._configured_writeable_store_type_id = "key-file";
           this._configured_writeable_store_id = "";
+#endif
 
           try
             {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]