Commit graph

351 commits

Author SHA1 Message Date
Markus Unterwaditzer
b5df8a4514 Possible fix for #49
- Radicale incorrectly unquotes URLs
  - Older versions of radicale are so buggy they fail to look up items
    with url quotes in them.
  - ownCloud/SabreDAV follows the rebustness principle such that it
    takes anything, but returns properly encoded URLs.

Conclusion: Send broken, unquoted URLs, because both sides seem to be
happy with them. As wrong as it might seem, it works.
2014-05-13 19:32:59 +02:00
Markus Unterwaditzer
89063c5096 Add test case for #49 2014-05-13 19:26:55 +02:00
Markus Unterwaditzer
d3cff80beb Fix #51 2014-05-13 19:25:16 +02:00
Markus Unterwaditzer
49224c703f Small refactoring in sync 2014-05-13 18:54:16 +02:00
Markus Unterwaditzer
2656ac7a92 Small refactoring for http storage 2014-05-12 20:16:17 +02:00
Markus Unterwaditzer
f565cd43a9 Possible fix for #50 2014-05-12 20:08:38 +02:00
Markus Unterwaditzer
6bf52092a2 Style fixes 2014-05-03 22:39:51 +02:00
Markus Unterwaditzer
d781ac1101 Kill it with fire. 2014-05-03 21:52:05 +02:00
Markus Unterwaditzer
e7fdc87d70 Add Python 3.4 2014-05-03 19:56:43 +02:00
Markus Unterwaditzer
ff063d6d4c Catch all exceptions.
The idea is that a storage's __init__ may raise *anything* if the values
are incorrect. We already do very explicit checks whether the user
specified the wrong parameters, and show the exception if that's not the
case.
2014-05-03 00:18:55 +02:00
Markus Unterwaditzer
9616f0bbfe Move "obscure" exceptions into their own modules 2014-05-03 00:17:39 +02:00
Markus Unterwaditzer
233e8524ab Convert some logging calls to exception raises 2014-05-03 00:11:55 +02:00
Markus Unterwaditzer
798bcf384c Move status name generation in own func 2014-05-03 00:06:04 +02:00
Markus Unterwaditzer
0c8eba1cd3 Saner variable names 2014-05-02 23:57:39 +02:00
Markus Unterwaditzer
94eb60f352 PAIR/COLLECTION instead of PAIR_COLLECTION
...for statuses.

Also, various CLI usability improvements.
2014-05-02 23:49:29 +02:00
Markus Unterwaditzer
63a2960c87 Add one more testcase 2014-05-02 23:49:03 +02:00
Markus Unterwaditzer
e8572cf858 See #47 2014-05-02 21:23:22 +02:00
Markus Unterwaditzer
a4687d371e Improve error message for config file. 2014-05-02 21:11:22 +02:00
Markus Unterwaditzer
e9c681aa41 Jeez flake8, you're so picky
This is an option from flake8-import-order, and flake8 chooses to choke
on it instead of ignoring it.
2014-05-02 19:45:23 +02:00
Markus Unterwaditzer
bb579a8879 Fix some imports 2014-05-02 19:30:38 +02:00
Markus Unterwaditzer
38e89cea55 Add config for flake8-import-order
https://github.com/public/flake8-import-order
2014-05-02 19:30:38 +02:00
Markus Unterwaditzer
110f5ca772 Remove unused constant 2014-05-02 19:30:38 +02:00
Markus Unterwaditzer
087312adb5 Stricter validation of items 2014-05-02 19:30:37 +02:00
Markus Unterwaditzer
d2f7d9a227 Some doc fixes for exceptions 2014-05-02 19:30:37 +02:00
Markus Unterwaditzer
0a1db301ad Add comment about multiline-strings 2014-05-02 19:30:37 +02:00
Markus Unterwaditzer
9a30d2fd24 Merge pull request #46 from mondonc/master
Avoid error when status_path dir doesn't exist
2014-05-02 17:00:59 +02:00
Clément Mondon
b6d3b9908b Avoid error when status_path dir doesn't exist 2014-05-02 16:33:10 +02:00
Markus Unterwaditzer
3e7bb377cc Add error message when general section is missing
Fix #43
Fix #45
2014-05-02 13:16:20 +02:00
Markus Unterwaditzer
b832d7423f Merge pull request #44 from nachtschattengewaechs/master
Don't suggest that `name = value # A comment` is a valid definition.
2014-05-02 12:29:29 +02:00
Julian Mehne
17248012e4 Add some information about the verify parameter. 2014-05-02 12:13:06 +02:00
Julian Mehne
40e67cb633 Don't suggest that name = value # A comment is a valid definition. 2014-05-02 12:03:00 +02:00
Markus Unterwaditzer
eb386c8dac TIMEZONE issue
Some URLs such as
https://mozorg.cdn.mozilla.net/media/caldata/JapanHolidays.ics

have VTIMEZONES at the top.
2014-05-01 22:08:13 +02:00
Markus Unterwaditzer
6e55e6d2c7 Remove useless class 2014-05-01 22:08:13 +02:00
Markus Unterwaditzer
aaf2eeb412 Remove obsolete --quiet option 2014-05-01 22:03:59 +02:00
Markus Unterwaditzer
d906aa3df6 Fix #42 2014-05-01 22:03:35 +02:00
Markus Unterwaditzer
9c45a7852a Disallow all multiline-values 2014-05-01 20:47:39 +02:00
Markus Unterwaditzer
7132ccdebb Remove useless multiline-ness 2014-05-01 20:03:13 +02:00
Markus Unterwaditzer
0cfdbf007a Merge pull request #41 from nachtschattengewaechs/master
Add some additional explanations to example.cfg
2014-05-01 14:26:51 +02:00
Markus Unterwaditzer
969ebb653d Fix bug with multiline values
The URL that showed this error up was

https://mozorg.cdn.mozilla.net/media/caldata/GermanHolidays.ics

with the following entry:

BEGIN:VEVENT
CREATED:20061023T132503Z
LAST-MODIFIED:20101214T141313Z
DTSTAMP:20101214T141313Z
UID:917544590
SUMMARY:Heilige drei Könige
STATUS:CONFIRMED
RRULE:FREQ=YEARLY;BYMONTH=1
CATEGORIES:Feiertag
DTSTART;VALUE=DATE:20060106
DTEND;VALUE=DATE:20060107
DESCRIPTION:Christlicher Feiertag. Nur in Baden-Württemberg\, Bayern und
 Sachsen-Anhalt.
X-MOZ-GENERATION:1
END:VEVENT
2014-05-01 11:25:22 +02:00
Julian Mehne
60aeaa7a17 Try to make the explanation of collections more obvious. 2014-04-30 19:55:01 +02:00
Julian Mehne
e08e266cbe Clarify the purpose of pair definitions in the config file. 2014-04-30 19:52:04 +02:00
Markus Unterwaditzer
24a913988b Version 0.1.4 2014-04-30 01:19:48 +02:00
Markus Unterwaditzer
a1063b0e06 Make flake8 for Python 3 shut up 2014-04-30 01:04:08 +02:00
Markus Unterwaditzer
a2f9a38e02 Install coverage.py outside of travis too 2014-04-30 01:03:54 +02:00
Markus Unterwaditzer
45793bbddc Don't actually change directories 2014-04-30 00:44:46 +02:00
Markus Unterwaditzer
4c492c06f3 Flake8 2014-04-30 00:41:51 +02:00
Markus Unterwaditzer
3b89f001b3 Update README re build scripts 2014-04-30 00:40:05 +02:00
Markus Unterwaditzer
2faa549e7b Remove requirements file 2014-04-30 00:39:42 +02:00
Markus Unterwaditzer
3537d9057d Remove useless functions 2014-04-30 00:39:28 +02:00
Markus Unterwaditzer
4067837b37 Only install coveralls and vdirsyncer for tests. 2014-04-30 00:38:13 +02:00