Commit graph

39 commits

Author SHA1 Message Date
Markus Unterwaditzer
f81f248dde Stylefix 2016-02-17 19:51:18 +01:00
Markus Unterwaditzer
6e9e856aae Better comments 2016-02-16 23:05:00 +01:00
Markus Unterwaditzer
f2a0d07c09 Fix bug in sync if href changes 2016-02-16 22:59:07 +01:00
Markus Unterwaditzer
211ff0e889 Stylefixes 2015-11-28 16:08:17 +01:00
Markus Unterwaditzer
5f80b9f3f6 Fix testcase 2015-11-28 16:07:40 +01:00
Markus Unterwaditzer
b694c3f60c Add testcase for bogus etag changes 2015-11-28 16:05:22 +01:00
Markus Unterwaditzer
b144ae1701 Restructure status layout for more flexibility 2015-11-28 15:41:37 +01:00
Markus Unterwaditzer
3efca22207 Stylefix 2015-11-13 23:57:07 +01:00
Markus Unterwaditzer
ed22764921 Fix bug during prefetch
The idea that prefetching isn't necessary if the other storage can't be
written to is wrong, we still need to prefetch for UID-matching
2015-11-13 23:00:59 +01:00
Markus Unterwaditzer
eb1485d99f Fix test 2015-09-12 16:42:50 +02:00
Markus Unterwaditzer
237aacee7d Deal with unicode UIDs in sync 2015-06-12 02:51:34 +02:00
Markus Unterwaditzer
e5c826ccfd Harden vdirsyncer against changing UIDs
In a strict sense not necessary since UIDs of an item must not be
changed.
2015-06-06 15:40:16 +02:00
Markus Unterwaditzer
df55926c39 Sync rewrite 2015-02-21 14:14:43 +01:00
Markus Unterwaditzer
5ce0d97f91 Remove copyright headers 2015-01-21 13:02:30 +01:00
Markus Unterwaditzer
12098bcc9d Add testcase for moved hrefs. 2015-01-10 22:06:56 +01:00
Markus Unterwaditzer
ccc3dee28b Handle UID conflicts during sync 2015-01-03 16:30:23 +01:00
Markus Unterwaditzer
9b442ebcf3 Enforce read-only attribute 2014-12-27 11:28:31 +01:00
Markus Unterwaditzer
37c2467f59 Stricten testsuite 2014-11-25 15:17:51 +01:00
Markus Unterwaditzer
6bd5bf7422 Simplify sync code
Before deletion, vdirsyncer will now check if the item changed on the
other side, and induce a re-upload if the item did change.

Because of this behavior it is now possible to remove the special-casing
if no status is available.

Fix #128
2014-10-20 17:42:45 +02:00
Markus Unterwaditzer
eb1431e5db Fix all known URL-quoting problems
- Fix #49 -- The old fix caused problems with other servers. The new
  behavior only decodes ``@`` characters.

- ``@`` is now not used when generating a new href, as some servers seem
  to have problems with it (http://sabre.io/dav/character-encoding/).
  This behavior is configurable via the ``unsafe_href_chars`` parameters
  for DAV storages, and is disabled in the testsuite for Radicale and
  ownCloud.

- Decoding of hrefs is also done twice for CarddavStorage.list because
  of owncloud/contacts#581. Vdirsyncer has behaved like that before, but
  not intentionally.

- Storages now don't share their ``_get_href`` methods anymore.
2014-08-06 16:43:23 +02:00
Markus Unterwaditzer
201c840e88 Import beautification 2014-06-19 00:07:54 +02:00
Markus Unterwaditzer
5028d09f61 Add read_only parameter
Just skip any updates when the storage is read-only, write to status
anyway. The change will get reverted in the next sync.

Fix #54
2014-06-12 14:24:00 +02:00
Markus Unterwaditzer
c1eb55c241 Copyright and contributor stuff
Fix #60
2014-05-22 12:50:43 +02:00
Markus Unterwaditzer
ef1f4fd875 Remove assertion of order. 2014-05-14 16:23:39 +02:00
Markus Unterwaditzer
b87abfa4c0 Syncronization without UIDs! 2014-05-14 15:08:31 +02:00
Markus Unterwaditzer
9616f0bbfe Move "obscure" exceptions into their own modules 2014-05-03 00:17:39 +02:00
Markus Unterwaditzer
bb579a8879 Fix some imports 2014-05-02 19:30:38 +02:00
Markus Unterwaditzer
d906aa3df6 Fix #42 2014-05-01 22:03:35 +02:00
Markus Unterwaditzer
cef68b5d09 Flake8 2014-04-16 00:45:13 +02:00
Markus Unterwaditzer
c18359466f More tests for conflict resolution 2014-04-11 22:51:11 +02:00
Markus Unterwaditzer
be2f0851f3 Add perftests for sync 2014-04-11 22:25:57 +02:00
Markus Unterwaditzer
745afbe5a3 Also test case where everything is *really* synced. 2014-04-07 19:45:13 +02:00
Markus Unterwaditzer
7f01b22642 Unify terminology obj => item 2014-04-06 00:21:28 +02:00
Markus Unterwaditzer
d14dfcd5f8 More copyright headers
[ci skip]
2014-04-01 21:09:40 +02:00
Markus Unterwaditzer
3df104a1f0 Fix useless test 2014-03-16 11:50:14 +01:00
Markus Unterwaditzer
cd31e66798 Flake 8 2014-03-16 11:47:01 +01:00
Markus Unterwaditzer
b3a720be75 Switch sync tests to function-based 2014-03-16 10:47:28 +01:00
Markus Unterwaditzer
273cc4d6fd Fixed a lot of tests 2014-03-04 17:27:09 +01:00
Markus Unterwaditzer
5c91f48f0e Move tests outside package
These tests will get so big we won't want to distribute them to users
2014-03-02 19:21:15 +01:00
Renamed from vdirsyncer/tests/test_sync.py (Browse further)