Selaa lähdekoodia

Merge branch 'master' into auths

Guillaume Ayoub 14 vuotta sitten
vanhempi
sitoutus
ae5a68fa6a
7 muutettua tiedostoa jossa 35 lisäystä ja 30 poistoa
  1. 5 2
      .pylintrc
  2. 1 1
      MANIFEST.in
  3. 11 6
      NEWS.rst
  4. 2 10
      README
  5. 8 0
      README.rst
  6. 3 7
      TODO.rst
  7. 5 4
      radicale/__init__.py

+ 5 - 2
.pylintrc

@@ -32,7 +32,10 @@ load-plugins=
 # Disable the message, report, category or checker with the given id(s). You
 # can either give multiple identifier separated by comma (,) or put this option
 # multiple time.
-disable=W0404
+# Remove warning removal warning
+# Remove stupid warning on ** magic
+# Remove stupid reimport warning
+disable=I0011,W0142,W0404
 
 
 [REPORTS]
@@ -72,7 +75,7 @@ ignore-mixin-members=yes
 
 # List of classes names for which member attributes should not be checked
 # (useful for classes with attributes dynamically set).
-ignored-classes=ParseResult
+ignored-classes=ParseResult,radicale.config
 
 # When zope mode is activated, add a predefined set of Zope acquired attributes
 # to generated-members.

+ 1 - 1
MANIFEST.in

@@ -1 +1 @@
-include COPYING NEWS TODO config logging radicale.fcgi radicale.wsgi
+include COPYING NEWS.rst TODO.rst README.rst config logging radicale.fcgi radicale.wsgi

+ 11 - 6
NEWS → NEWS.rst

@@ -1,10 +1,15 @@
-==========================
- Radicale - CalDAV Server
-==========================
+======
+ News
+======
+
+0.6.1 - Growing Up
+==================
+
+* Example files included in the tarball
+* htpasswd support fixed
+* Redirection loop bug fixed
+* Testing message on GET requests
 
-------
- NEWS
-------
 
 0.6 - Sapling
 =============

+ 2 - 10
README

@@ -1,12 +1,4 @@
-==========================
- Radicale - CalDAV Server
-==========================
-
---------
- README
---------
-
 The Radicale Project is a free and open-source CalDAV calendar server.
 
-For complete documentation, please visit the `Radicale online documentation
-<http://www.radicale.org/documentation>`_
+For complete documentation, please visit the Radicale online documentation
+(http://www.radicale.org/documentation).

+ 8 - 0
README.rst

@@ -0,0 +1,8 @@
+=========
+ Read Me
+=========
+
+The Radicale Project is a free and open-source CalDAV calendar server.
+
+For complete documentation, please visit the `Radicale online documentation
+<http://www.radicale.org/documentation>`_

+ 3 - 7
TODO → TODO.rst

@@ -1,10 +1,6 @@
-==========================
- Radicale - CalDAV Server
-==========================
-
-------
- TODO
-------
+============
+ To-Do List
+============
 
 0.7
 ===

+ 5 - 4
radicale/__init__.py

@@ -192,7 +192,7 @@ class Application(object):
             else:
                 user = password = None
 
-            last_allowed = False
+            last_allowed = None
             calendars = []
             for calendar in items:
                 if not isinstance(calendar, ical.Calendar):
@@ -219,17 +219,18 @@ class Application(object):
                         last_allowed = False
 
             if calendars:
+                # Calendars found
                 status, headers, answer = function(
                     environ, calendars, content, user)
-            elif user and self.acl.has_right(user, user, password):
-                # Check if the user/password couple matches,
-                # redirect user to his principal home in this case
+            elif user and last_allowed is None:
+                # Good user and no calendars found, redirect user to home
                 location = "/%s/" % str(quote(user))
                 log.LOGGER.info("redirecting to %s" % location)
                 status = client.FOUND
                 headers = {"Location": location}
                 answer = "Redirecting to %s" % location
             else:
+                # Unknown or unauthorized user
                 status = client.UNAUTHORIZED
                 headers = {
                     "WWW-Authenticate":