From patrick.ohly at intel.com Fri Aug 14 12:59:01 2015 From: patrick.ohly at intel.com (Patrick Ohly) Date: Fri, 14 Aug 2015 14:59:01 +0200 Subject: [SyncEvolution] DBUS APi In-Reply-To: References: Message-ID: <1439557141.28153.58.camel@intel.com> On Mon, 2015-08-10 at 20:04 -0300, Renato Filho wrote: > I am using the DBUS API for a while do to simple syncs, but now I want > to sync all remote calendars from Google(Webdav) into individual local > calendars (EDS-calendars). > > I am trying to reproduce the steps of this tutorial[1] with DBUS API. > Until now I think I did it right since I can sync it manually in the > end using: > syncevolution --sync refresh-from-remote > > But I fail to sync it using the DBUS API. How does it fail? Running "syncevo-dbus-server" with --dbus-verbosity=3 and then capturing the D-Bus traffic with "dbus-monitor" would be useful. And/or can you turn this into a fully functional Python script that I can run here to reproduce the issue? -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issue, nor am I authorized to speak on behalf of Intel on this matter. From renato.filho at canonical.com Mon Aug 24 16:20:33 2015 From: renato.filho at canonical.com (Renato Filho) Date: Mon, 24 Aug 2015 13:20:33 -0300 Subject: [SyncEvolution] DBUS APi In-Reply-To: <1439557141.28153.58.camel@intel.com> References: <1439557141.28153.58.camel@intel.com> Message-ID: Hi Patrick, Based on my debugs, looks like it is trying to sync all sources instead of the source specified on the sync command. I created a python script that reproduce my C++ code. This should help to understand the problem. To use it: Create config files: "python3 main.py config " Sync source: "python3 main.py sync " Thanks On Fri, Aug 14, 2015 at 9:59 AM, Patrick Ohly wrote: > On Mon, 2015-08-10 at 20:04 -0300, Renato Filho wrote: >> I am using the DBUS API for a while do to simple syncs, but now I want >> to sync all remote calendars from Google(Webdav) into individual local >> calendars (EDS-calendars). >> >> I am trying to reproduce the steps of this tutorial[1] with DBUS API. >> Until now I think I did it right since I can sync it manually in the >> end using: >> syncevolution --sync refresh-from-remote >> >> But I fail to sync it using the DBUS API. > > How does it fail? Running "syncevo-dbus-server" with --dbus-verbosity=3 > and then capturing the D-Bus traffic with "dbus-monitor" would be > useful. > > And/or can you turn this into a fully functional Python script that I > can run here to reproduce the issue? > > -- > Best Regards, Patrick Ohly > > The content of this message is my personal opinion only and although > I am an employee of Intel, the statements I make here in no way > represent Intel's position on the issue, nor am I authorized to speak > on behalf of Intel on this matter. > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: main.py Type: text/x-python Size: 6111 bytes Desc: not available URL: