Only once Instance of CouchDB-Backend accessable

Bug #584473 reported by chewi_mce@schmodder.org
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
evolution-couchdb
New
Undecided
Unassigned

Bug Description

Even if you add additional CouchDB-Addressbooks, all the instances only connect to one backend.
The problem seems to be, that identification of backends is done through relativeURI, which is left empty by evolution couchdb.
I did the following changes and now it works for me... :-)

Use at your own risk...

diff -urN a/plugins/couchdb-contacts-source.c b/plugins/couchdb-contacts-source.c
--- a/plugins/couchdb-contacts-source.c 2010-03-04 17:02:39.000000000 +0100
+++ b/plugins/couchdb-contacts-source.c 2010-05-22 22:59:30.712482043 +0200
@@ -225,6 +236,12 @@
  ui = g_new0 (UIData, 1);
  ui->source = t->source;

+ e_source_set_relative_uri(ui->source, e_source_peek_uid(ui->source));
+ if (g_strcmp0 (e_source_get_property(ui->source, "couchdb_db_name"), "") == 0) {
+ e_source_set_property(ui->source, "couchdb_db_name", "contacts");
+ }
+
  parent = data->parent;
  parent_vbox = gtk_widget_get_ancestor (gtk_widget_get_parent (parent), GTK_TYPE_VBOX);

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.