Commit graph

801 commits

Author SHA1 Message Date
Markus Unterwaditzer
af5705f740 Return back to None as non-ETag
nextCloud now returns no etag on upload, which is why we're forced to
adapt the tests accordingly. So now we need to specify a fixed value for
"no etag returned" such that the tests can act accordingly. We also need
to test that the sync algorithm works properly with None.
2017-01-12 13:52:32 +01:00
Markus Unterwaditzer
536d9400c6 Stylefix 2017-01-05 18:55:43 +01:00
Markus Unterwaditzer
5568e4873e Fix more bugs re #523 2017-01-05 18:50:38 +01:00
Markus Unterwaditzer
45cea7fce2 Stylefix 2017-01-02 18:19:36 +01:00
Markus Unterwaditzer
8f00a6ae39 Refactor sync() to use more classes 2017-01-02 18:19:12 +01:00
Markus Unterwaditzer
21d83ae0d2 Document option default 2016-12-31 17:06:09 +01:00
Markus Unterwaditzer
11ef34a184 Improve helptext 2016-12-21 18:02:33 +01:00
Markus Unterwaditzer
bd19ee45d8 Stylefix for new bugbear update 2016-12-19 22:18:27 +01:00
Markus Unterwaditzer
96bf21c1da Dont repair unsafe UIDs by default, fix #527 2016-12-06 15:58:16 +01:00
Markus Unterwaditzer
eadb7203ee stylefixes 2016-12-06 15:32:44 +01:00
Markus Unterwaditzer
d1232947c6 Add comment for question #527 2016-12-05 14:19:32 +01:00
Markus Unterwaditzer
e08d096f29 Fix edge case in DAV 2016-11-20 02:58:49 +01:00
Markus Unterwaditzer
9658908118 Fix style 2016-11-10 18:16:41 +01:00
Markus Unterwaditzer
835f8e745e Fix doc link 2016-11-10 15:25:42 +01:00
Markus Unterwaditzer
ef8e3324c6 Debian isn't the only one. 2016-11-10 15:25:15 +01:00
Markus Unterwaditzer
5a257ec2cd config: Add warning about unquoted strings 2016-10-23 01:40:04 +02:00
Markus Unterwaditzer
4da83bfb79 Remove vdirsyncer repl hack 2016-10-22 16:36:24 +02:00
Markus Unterwaditzer
2186178968 Stylefix 2016-10-22 16:22:21 +02:00
Markus Unterwaditzer
1795e63910 Refactor Config API, expose load_config for khal 2016-10-21 13:23:27 +02:00
Markus Unterwaditzer
c6e185d8a3 Evaluate partial_sync lazily
Fix #516
2016-10-13 18:25:55 +02:00
Markus Unterwaditzer
ff7586fc40 Stylefix 2016-10-04 20:01:08 +02:00
Markus Unterwaditzer
d33c98ac93 Bugfix in config validator 2016-10-04 19:17:38 +02:00
Markus Unterwaditzer
a5eec6193b Prevent setting partial_sync if nothing read-only. 2016-10-04 18:55:47 +02:00
Markus Unterwaditzer
15bf13cfe1 Make pair config more strongly typed 2016-10-04 18:51:11 +02:00
Markus Unterwaditzer
1c030d40ac metasync: Error on invalid conflict resolution 2016-10-04 18:46:57 +02:00
Markus Unterwaditzer
51063f09a6 Improve logging for sync 2016-10-03 19:15:21 +02:00
Markus Unterwaditzer
827299ef24 Add CLI for partial_sync 2016-10-03 19:01:03 +02:00
Markus Unterwaditzer
ffeaf25471 internal implementation of partial_sync 2016-10-03 18:37:32 +02:00
Markus Unterwaditzer
497e4a958c sync refactor: get rid of duplicate action designs
Actions are basically an unnecessarily specialized version of the
`*_full`-methods on StorageInfo. This commit makes the API of Actions
more general and removes the `*_full`-methods.
2016-10-03 16:12:49 +02:00
Markus Unterwaditzer
3cf33e5efe Stylefix 2016-10-01 19:09:27 +02:00
Markus Unterwaditzer
826a64226e cli-sync: Action failures are non-fatal.
Fix #343
2016-10-01 18:32:05 +02:00
Markus Unterwaditzer
34ac29fc2a Add error_callback to sync() 2016-10-01 18:25:17 +02:00
Markus Unterwaditzer
68d2647e38 Add flake8-bugbear 2016-10-01 16:01:12 +02:00
Markus Unterwaditzer
3aca7e247a Fix bug with combination of yield and return
Thanks van Rossum!
2016-09-30 09:01:49 +02:00
Markus Unterwaditzer
aede90eee9 Ability to pass homeset-url for DAV storage (#511)
See #509
2016-09-29 18:49:41 +02:00
Markus Unterwaditzer
6f4ff7aab1 Replace Dav with DAV
Fix #501
2016-09-27 10:46:17 +02:00
Markus Unterwaditzer
5f76c9e720 Another sync refactor 2016-09-26 12:51:49 +02:00
Markus Unterwaditzer
4e3d351917 Stylefix 2016-09-25 14:42:41 +02:00
Markus Unterwaditzer
dd5f76ca5d ignore UIDs in http storage 2016-09-25 14:03:46 +02:00
Markus Unterwaditzer
78e11ebb66 Fix missing return value 2016-09-20 09:59:24 +02:00
Markus Unterwaditzer
fbaac88776 Merge pull request #507 from citrin/master
Strip trailing slash from .well-known-URIs to fix autodiscovery
2016-09-19 23:52:34 +02:00
Anton Yuzhaninov
d60132cbc0 Strip slash from well-known URL for Google
According to https://developers.google.com/google-apps/carddav/
URL should be https://www.googleapis.com/.well-known/carddav
2016-09-19 21:50:30 +00:00
Markus Unterwaditzer
5e44f0cfe1 Stylefix 2016-09-19 22:46:07 +02:00
Anton Yuzhaninov
2747bee9a6 Strip trailing slash from .well-known-URIs to fix autodiscovery
According to RFC6764 URLs should be "/.well-known/caldav" and
"/.well-known/caldav".
2016-09-19 18:53:12 +00:00
Markus Unterwaditzer
1087afeaa8 Tone down a warning to an error
Fix #498
2016-09-19 19:44:28 +02:00
Markus Unterwaditzer
22568571c2 Introduce conflict resolution via commands
Fix #127

More options of conflict resolution are discussed there, but they all
require extra dependencies. This new API allows the user to plug in
third-party scripts to do those.
2016-09-19 19:17:39 +02:00
Markus Unterwaditzer
dc5500892b More config refactor 2016-09-19 19:17:39 +02:00
Markus Unterwaditzer
cfbc7ec71b Refactor of status handling in sync (#505)
- Using `info.idents` as new status, this saves a few operations where
  no storage actions have to be taken, but the status has to be updated.

- Rename StorageSyncer to _StorageInfo and make it a private API again.

- Ability to pass custom functions for conflict resolution. This part is
  a preparation for #127.
2016-09-18 15:46:56 +02:00
Markus Unterwaditzer
b0c498f70a Don't require current-user-principal
See #498
2016-09-12 18:58:02 +02:00
Markus Unterwaditzer
1846b392fa Fix encoding bug with http data 2016-09-08 14:09:56 +02:00