From 5c66241346e95e7a6669b74b09865d62fb5c42a6 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Sat, 27 Aug 2011 13:29:38 +0200 Subject: [PATCH] 0.6.1 version --- NEWS.rst | 9 +++++++++ README | 4 ++++ radicale/__init__.py | 18 ++++++------------ 3 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 README diff --git a/NEWS.rst b/NEWS.rst index 1d2b2bd..bd1190e 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -2,6 +2,15 @@ News ====== +0.6.1 - Growing Up +================== + +* Example files included in the tarball +* htpasswd support fixed +* Redirection loop bug fixed +* Testing message on GET requests + + 0.6 - Sapling ============= diff --git a/README b/README new file mode 100644 index 0000000..8747d27 --- /dev/null +++ b/README @@ -0,0 +1,4 @@ +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). diff --git a/radicale/__init__.py b/radicale/__init__.py index c226c31..7637937 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -49,7 +49,7 @@ except ImportError: from radicale import acl, config, ical, log, xmlutils -VERSION = "git" +VERSION = "0.6.1" class HTTPServer(wsgiref.simple_server.WSGIServer, object): @@ -223,18 +223,12 @@ class Application(object): status, headers, answer = function( environ, calendars, content, user) elif user and last_allowed is None: - # Good user and no calendars found + # Good user and no calendars found, redirect user to home location = "/%s/" % str(quote(user)) - if location == environ["PATH_INFO"]: - # We already have redirected the client - status, headers, answer = function( - environ, calendars, content, user) - else: - # Redirect the client - log.LOGGER.info("redirecting to %s" % location) - status = client.FOUND - headers = {"Location": location} - answer = "Redirecting to %s" % location + 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