Commit Graph

852 Commits

Author SHA1 Message Date
Guillaume Ayoub
3560f96c8b Fix tox.ini 2016-05-18 22:31:28 +02:00
Guillaume Ayoub
47e048a3c2 Merge pull request #397 from untitaker/tox-in-travis
Use tox within travis
2016-05-18 22:29:23 +02:00
Markus Unterwaditzer
f6e5026d9d Use tox within travis
This deduplicates the testing setup and commands
2016-05-18 20:53:34 +02:00
Guillaume Ayoub
39b34b2f52 Install flake8 in Travis 2016-05-18 20:25:50 +02:00
Guillaume Ayoub
6769629314 Remove useless empty function 2016-05-18 20:22:36 +02:00
Guillaume Ayoub
45576d7474 Handle text-match filters
Related to #33.
2016-05-18 20:21:03 +02:00
Guillaume Ayoub
d063e3a370 Launch flake8 in tests 2016-05-12 19:24:24 +02:00
Guillaume Ayoub
20ff5444fb Don't explicitely inherit from object 2016-05-12 18:57:59 +02:00
Guillaume Ayoub
ca056dea9f Don't return 404 for GET requests on collections 2016-05-12 18:55:03 +02:00
Guillaume Ayoub
2ce9fceaff Merge branch 'master' of github.com:Kozea/radicale 2016-05-06 17:57:58 +02:00
Guillaume Ayoub
a28df4dd4b Reorganize filters
Related to #33 and #372.
2016-05-06 17:53:02 +02:00
Guillaume Ayoub
f5ce05f4a5 Merge pull request #390 from untitaker/flake8-fixes
Introduce Flake8, fix some bugs
2016-05-05 00:19:19 +02:00
Markus Unterwaditzer
6cc68862dc Test Flake8 compliance in CI 2016-05-04 19:26:37 +02:00
Markus Unterwaditzer
2dee66133d Flake8 fixes 2016-05-04 19:25:58 +02:00
Guillaume Ayoub
2cda64245e Merge pull request #385 from untitaker/rights-fixes
Fixes to Rights
2016-04-23 09:11:16 +09:00
Markus Unterwaditzer
0de3ad36be Fixes to Rights
- BaseRights expects the config and logger params
- user may be None, which leads to errors when trying to use it with
  regexes.
2016-04-22 20:30:40 +02:00
Guillaume Ayoub
2f97d7d1e1 Remove global state about configuration and logs
Many things have been changed to make this possible, probably leading to
many hidden bugs waiting to be found.

Related to #122.
2016-04-22 11:37:02 +09:00
Guillaume Ayoub
8ac19ae0fc Merge pull request #383 from jbg/patch-1
Corrected calendar-timezone code in xmlutils.py
2016-04-21 15:01:51 +09:00
Jasper Bryant-Greene
0670aa9fb4 Corrected calendar-timezone code in xmlutils.py 2016-04-21 10:40:36 +05:30
Guillaume Ayoub
6db946080e Cosmetics 2016-04-21 09:12:00 +09:00
Guillaume Ayoub
89e2226b16 Merge pull request #382 from untitaker/tag-filters-fix
Unbreak tag filters
2016-04-21 09:04:25 +09:00
Markus Unterwaditzer
7f2d1c00c4 Unbreak tag filters 2016-04-20 20:17:05 +02:00
Guillaume Ayoub
303a53eede Return Items in upload and update methods
Related to #380
2016-04-20 08:09:00 +09:00
Guillaume Ayoub
ecf53c5e1e Merge branch 'master' of github.com:Kozea/radicale 2016-04-20 07:50:58 +09:00
Guillaume Ayoub
3a9bcc7555 Add etag property to items
Related to #380.
2016-04-20 07:49:03 +09:00
Guillaume Ayoub
c0f7bec51d Merge pull request #379 from untitaker/double-slash
Fix double slash in REPORT responses
2016-04-20 06:23:45 +09:00
Markus Unterwaditzer
1b1ba421ff Fix double slash in REPORT responses
When doing REPORTs with absolute paths as hrefs, the response hrefs
contain a double slash at the beginning. This breaks URL parsers and
makes them assume they have a URL without protocol of the format
`//example.com/foo/bar/`.
2016-04-19 23:19:22 +02:00
Guillaume Ayoub
bf8bd90bcb Fix removal of base_prefix in multiget requests 2016-04-19 10:44:02 +09:00
Guillaume Ayoub
6adc7f5fed Enhance collection discovering
When the request path leads to a non-existing item, try to create the
Collection object according to an existing collection at request path's
parent.

This change means that the requests whose path leads to a collection
that doesn't exist (at least MKCOL, MKCALENDAR and PUT) need to rely on
the request path more than on the Collection path. It was already done
for PUT, it's been fixed for MKCOL and MKCALENDAR.

Fix #378.
2016-04-19 10:39:52 +09:00
Guillaume Ayoub
65659fc909 Improve WebDAV compatibility
Add getlastmodified and getcontentlength properties, and fix nested
collections support. Fix #321.
2016-04-18 09:11:00 +09:00
Guillaume Ayoub
99544fcf80 Allow the creation of empty collections
Fix #201
2016-04-17 13:58:56 +09:00
Guillaume Ayoub
01bcdec729 Merge pull request #376 from untitaker/fixes
Various fixes
2016-04-15 09:41:07 +09:00
Markus Unterwaditzer
e8c1defe6a Update PROPPATCH to new storage API 2016-04-13 23:02:00 +02:00
Markus Unterwaditzer
472d016d1e Fix crash when fetching nonexistent href 2016-04-13 22:56:57 +02:00
Markus Unterwaditzer
f169f2f19b Don't crash if collection doesn't exist yet 2016-04-13 22:09:00 +02:00
Markus Unterwaditzer
a1cdcf2fba Don't crash if propsfile doesn't exist 2016-04-12 22:43:10 +02:00
Guillaume Ayoub
e586569b31 Fix a lot of details 2016-04-12 18:21:18 +02:00
Guillaume Ayoub
406027f3c9 Change the Collection API
The new API used comes from vdirsyncer, as proposed by @untitaker in
issue #130.

The code has been tested and works with the (too simple) unit tests, and
with Lightning and DAVdroid. Many things are broken and a good part of
the code has not be ported to the new API yet. TODOs have been added
where the application is known to be broken.
2016-04-11 20:11:35 +02:00
Guillaume Ayoub
8102926148 Don't import radicale in setup.py 2016-04-10 11:31:52 +02:00
Guillaume Ayoub
9f969cfaf5 Fix the Travis configuration 2016-04-10 11:13:54 +02:00
Guillaume Ayoub
2408097ab9 Clean the storage module 2016-04-10 02:37:43 +02:00
Guillaume Ayoub
c30a095fbb Remove useless SQL file 2016-04-10 02:09:20 +02:00
Guillaume Ayoub
41e319a8b8 Merge ical and storage modules 2016-04-10 02:08:07 +02:00
Guillaume Ayoub
73d39ea572 Use vobject 2016-04-10 01:36:45 +02:00
Guillaume Ayoub
b495bfa59f Remove pathutils 2016-04-09 22:45:14 +02:00
Guillaume Ayoub
12ddd64884 Fix the management of paths 2016-04-09 22:44:34 +02:00
Guillaume Ayoub
2dfde5a7da Add a documentation line in rights example file 2016-04-09 22:10:51 +02:00
Guillaume Ayoub
af19377c80 Explain the goal of the sample "rights" file
Related to #374
2016-04-09 15:31:47 +02:00
Guillaume Ayoub
7a0e267f19 Better collection discovery 2016-04-09 15:11:47 +02:00
Guillaume Ayoub
058bd454c0 Merge branch 'master' of github.com:Kozea/radicale 2016-04-08 15:07:33 +02:00