syncevolution/src/templates
Patrick Ohly f418481057 WebDAV: improved --configure
Added INFO output about checking sources. This helps with WebDAV when
the server cannot be contacted (dead, misconfigured) because otherwise
there would be no indication at all why the --configure operation
seems to hang.

Here is some example output, including aborting:
$ syncevolution --configure --template webdav \
                syncURL=http://192.168.1.100:9000/ \
                username=foo password=bar retryDuration=2s \
                target-config@webdav-temp
[INFO] creating configuration target-config@webdav-temp
[INFO] addressbook: looking for databases...
[INFO] addressbook: no database to synchronize
[INFO] calendar: looking for databases...
[INFO] calendar: no database to synchronize
[INFO] memo: looking for databases...
[INFO] memo: no database to synchronize
[INFO] todo: looking for databases...
[INFO] todo: no database to synchronize

It timed out fairly quickly here because of the retryDuration=2s. That
also gets placed in the resulting config, which is probably not desired.

$ syncevolution --configure \
                --template webdav \
                syncURL=http://192.168.1.100:9000/ \
                username=foo password=bar \
                target-config@webdav-temp
[INFO] creating configuration target-config@webdav-temp
[INFO] addressbook: looking for databases...
^C[INFO] Asking to suspend...
[INFO] Press CTRL-C again quickly (within 2s) to stop immediately (can cause problems in the future!)
^C[INFO] Aborting immediately ...
[ERROR] error code from SyncEvolution aborted on behalf of user (local, status 20017): aborting as requested by user

It would be good to make the CTRL-C handling code aware that it can
abort immediately instead of doing the intermediate "asking to suspend"
step, which only makes sense for sync sessions.

Also added task and memo sources to the WebDAV template.

Both requires changes to the testing. Instead of updating the C++
CmdlineTest, the affected tests were removed and only the
corresponding Python tests were updated.
2012-06-20 12:34:24 +02:00
..
clients Merge remote-tracking branch 'origin/syncevolution-1-2-branch' 2011-11-28 10:16:57 +01:00
contexts WebDAV: improved --configure 2012-06-20 12:34:24 +02:00
servers sync: refresh-from-server implementation configurable 2012-06-15 12:25:52 +02:00
README installation: templates now in $(datadir)/syncevolution/templates (MB #7808) 2009-11-27 14:43:22 +01:00
templates.am autotools: fixed "make dist[check]" in non-recursive Automake 2011-09-02 09:20:23 +00:00

The configuration templates in this directory are *not* complete and
therefore not suitable for copying them directly in a .config
directory.

They contain only those properties which are different for a certain
peer compared to the built-in default values. They are used by the
SyncEvolution binaries to create complete configurations.