syncevolution/src
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
..
backends WebDAV: improved support for aborting while resending 2012-06-20 12:27:39 +02:00
dbus core, WebDAV: improved support for aborting while sleeping 2012-06-20 12:26:43 +02:00
gdbus GDBus libdbus: signal delivery optional 2012-05-10 22:08:47 +02:00
gdbusxx GDBus GIO: disable usage of "closed" signal 2012-05-11 19:09:01 +00:00
gnome-bluetooth Merge remote-tracking branch 'origin/syncevolution-1-2-branch' 2011-11-28 10:16:57 +01:00
gtk-ui GTK-2/3 UI: avoid g_strcasecmp 2012-04-24 15:42:09 +02:00
gtk3-ui GTK-2/3 UI: avoid g_strcasecmp 2012-04-24 15:42:09 +02:00
syncevo WebDAV: improved --configure 2012-06-20 12:34:24 +02:00
synthesis-includes autotools: --disable-core --enable-gui => build only sync-ui and its D-Bus lib 2010-03-23 19:04:06 +01:00
templates WebDAV: improved --configure 2012-06-20 12:34:24 +02:00
README.h added missing copyright and license headers 2009-05-11 16:31:17 +02:00
README.templates Merge remote branch 'origin/syncevolution-0-9-branch' 2009-11-30 21:41:53 +01:00
async.patch patch switches to async version of the Evolution API 2007-02-22 19:33:21 +00:00
client-test-app.cpp testing: allow backends to register tests after main() 2012-06-15 12:25:52 +02:00
shlibs.local reverted to 0.7 packaging 2008-07-03 19:56:15 +00:00
src.am password handling: fixed KWallet support, global configuration option 2012-05-30 09:09:00 +02:00
syncevo-local-sync.cpp local sync: execute 'syncevo-local-sync' on child side, communicate via D-Bus 2012-01-20 13:38:49 +01:00
syncevolution.cpp password handling: fixed KWallet support, global configuration option 2012-05-30 09:09:00 +02:00
testcases.am Port build system to non-recursive Automake. 2011-08-30 16:38:34 +02:00
valgrind.supp ObexTransportAgent: Fix valgrind warnings (MB#10091) 2010-03-12 06:33:13 -08:00

README.templates

The configuration templates in "templates" get installed into
$(datadir)/syncevolution/templates.

When adding/changing a new server, then only enter the properties
which need to be changed here so that the default values can
be used for the remaining properties.

An icon can be added here for servers. The file name must start with
"icon".

Server configurations must be kept in sync in three different places:
- here (if a server is installed as files)
- in SyncEvolutionConfig.cpp's EvolutionSyncConfig::createServerTemplate()
- in SyncEvolutionCmdline.cpp's test server configs
- in test/test-dbus.py testGetConfigsTemplates()

Note that server icons must come with a suitable license that allows
redistribution.