Commit graph

288 commits

Author SHA1 Message Date
Markus Unterwaditzer
6841b25264 Add --version flag, fix #92 2014-08-06 17:47:58 +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
73a540261c Version 0.2.2 2014-08-04 18:49:18 +02:00
Markus Unterwaditzer
59dd78dfd9 Don't check for href prefix anymore
This doesn't really serve any security purposes at all.

Fix #91
Fix #87
2014-08-04 18:34:11 +02:00
Markus Unterwaditzer
667c10ef00 Fix autodiscovery for radicale
See https://github.com/Kozea/Radicale/pull/95#issuecomment-50314561
2014-08-04 11:48:27 +02:00
Markus Unterwaditzer
62a817fef3 Hardcode mkdir mode 2014-07-23 12:25:06 +02:00
Markus Unterwaditzer
722665747e Actually use mode 2014-07-23 12:24:33 +02:00
Markus Unterwaditzer
f4f39207fa Some refactoring 2014-07-23 12:21:27 +02:00
Markus Unterwaditzer
d263a399f3 Improve docstrings and comments 2014-07-23 10:21:45 +02:00
Markus Unterwaditzer
c750561fb8 Use more fixtures 2014-07-06 23:22:02 +02:00
Markus Unterwaditzer
29ba12cf19 Only warn on duplicate hrefs in DAV
Fix #88
2014-07-06 20:58:47 +02:00
Markus Unterwaditzer
7bbc8b87da Some smaller changes to testsuite 2014-07-06 20:28:48 +02:00
Markus Unterwaditzer
01059d4cd2 Version 0.2.1 2014-07-05 15:40:24 +02:00
Markus Unterwaditzer
0dfcefbfd3 Use PROPFIND for carddav queries because of Zimbra
Fix #83
Fix #84
2014-07-05 14:09:30 +02:00
Markus Unterwaditzer
3abebde87f Fix logging in test suite 2014-07-05 01:07:23 +02:00
Markus Unterwaditzer
f5f505f557 Elaborate on caldav item queries with Radicale 2014-07-02 20:00:20 +02:00
Markus Unterwaditzer
0b6e3adf0e Some docstring fixes 2014-07-02 18:37:57 +02:00
Markus Unterwaditzer
be10f8ce58 Exception cleanup 2014-07-02 16:28:26 +02:00
Markus Unterwaditzer
b9bf6f2e9e Another style fix 2014-07-01 18:32:49 +02:00
Markus Unterwaditzer
e4ae04aaa1 Some minor optimizations
In the case of singlefile this doesn't help much as the whole
implementation is algorithmically flawed. It's not like i care enough to
make the code even more complicated though.
2014-06-29 19:03:49 +02:00
Markus Unterwaditzer
78addbf4c7 Fix broken reference. 2014-06-25 15:22:30 +02:00
Markus Unterwaditzer
96aae16c32 Fix typo induced bug in split_collection 2014-06-22 00:21:29 +02:00
Markus Unterwaditzer
2fb58d6bcd Fix bug in keyring fetching code
Leading to infinite loop when the password is simply not there.

Also fixed some import styling again
2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
289ac2cfac More tests 2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
28b649dec9 Don't use click's newline echoing
click.echo does two write calls, which get flushed immediately. Using
this in multiprocessing might make output overlap. Using a single
write-call apparently resolves that issue, although i don't know why.

A proper solution would be to use locks, but e.g. multiprocessing's
logger doesn't seem have nearly as much flexibility as others. For now
it seems to be bugfree enough.
2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
a6e2f23bbc Catch exceptions with decorator
This allows us to validate the exact output in the tests
2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
a300c8c222 Only add stdout handler when running as cli 2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
3cc9081f1c More beautiful output 2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
e9722ee63d Add test for simple usage 2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
8b889e9ecd Port CLI to Click.
After a while i finally gave in and ported the whole command line
interface of vdirsyncer to Click. While it might seem like a huge
dependency, i hope we can eliminate some helper functions in the
process, and maybe are more motivated to write a more beautiful and
intuitive interface due to all the niceties Click provides.
2014-06-19 18:14:50 +02:00
Markus Unterwaditzer
201c840e88 Import beautification 2014-06-19 00:07:54 +02:00
Markus Unterwaditzer
4bfc466d9f Fix tangled logic 2014-06-18 16:49:33 +02:00
Markus Unterwaditzer
7ad89d439b Factor out prefetching 2014-06-18 16:48:35 +02:00
Markus Unterwaditzer
80f8301f71 Unify action API 2014-06-18 16:48:35 +02:00
Markus Unterwaditzer
82af0fad2e Fix bug in handling item_types 2014-06-15 20:30:54 +02:00
Markus Unterwaditzer
81b4c9eb65 Exitcode 1 on any errors. 2014-06-15 20:29:41 +02:00
Markus Unterwaditzer
ea259f2785 Add important note. 2014-06-15 11:55:23 +02:00
Markus Unterwaditzer
fadff19752 Make CaldavStorage.list faster 2014-06-15 11:15:13 +02:00
Markus Unterwaditzer
b5f42457bd Style fixes 2014-06-14 22:02:16 +02:00
Markus Unterwaditzer
42d69b1dbd Fix faulty logic again 2014-06-14 21:49:04 +02:00
Markus Unterwaditzer
5f27d25b3c Some internal documentation improvements. 2014-06-14 21:31:25 +02:00
Markus Unterwaditzer
d3abff9ff7 Some minor optimizations and stricter validation. 2014-06-14 13:30:18 +02:00
Markus Unterwaditzer
11adeaff86 split_collection: Allow multiple wrappers
Fix #78
2014-06-14 13:23:22 +02:00
Markus Unterwaditzer
783d2b56b3 Add some docs for read-only storage support 2014-06-13 19:35:24 +02:00
Markus Unterwaditzer
7a84562e30 Version 0.2.0 2014-06-12 15:53:13 +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
e25e4dc0cb Fix bug 2014-06-12 12:51:20 +02:00
Markus Unterwaditzer
13ecb42e60 Fix import 2014-06-11 23:10:15 +02:00
Markus Unterwaditzer
25d30991c6 Move cached_property to general utils. 2014-06-11 23:10:15 +02:00
Markus Unterwaditzer
cec742b9e3 Correctly handle multiline UIDs
See #74
2014-06-11 23:10:15 +02:00