Skip to content

Commit

Permalink
0.6.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Aug 27, 2011
1 parent 4b87cb9 commit 5c66241
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
9 changes: 9 additions & 0 deletions NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
=============

Expand Down
4 changes: 4 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -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).
18 changes: 6 additions & 12 deletions radicale/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
from radicale import acl, config, ical, log, xmlutils


VERSION = "git"
VERSION = "0.6.1"


class HTTPServer(wsgiref.simple_server.WSGIServer, object):
Expand Down Expand Up @@ -223,18 +223,12 @@ def __call__(self, environ, start_response):
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
Expand Down

0 comments on commit 5c66241

Please sign in to comment.