0.6.1 version
This commit is contained in:
parent
4b87cb9181
commit
5c66241346
9
NEWS.rst
9
NEWS.rst
@ -2,6 +2,15 @@
|
|||||||
News
|
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
|
0.6 - Sapling
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
4
README
Normal file
4
README
Normal file
@ -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).
|
@ -49,7 +49,7 @@ except ImportError:
|
|||||||
from radicale import acl, config, ical, log, xmlutils
|
from radicale import acl, config, ical, log, xmlutils
|
||||||
|
|
||||||
|
|
||||||
VERSION = "git"
|
VERSION = "0.6.1"
|
||||||
|
|
||||||
|
|
||||||
class HTTPServer(wsgiref.simple_server.WSGIServer, object):
|
class HTTPServer(wsgiref.simple_server.WSGIServer, object):
|
||||||
@ -223,18 +223,12 @@ class Application(object):
|
|||||||
status, headers, answer = function(
|
status, headers, answer = function(
|
||||||
environ, calendars, content, user)
|
environ, calendars, content, user)
|
||||||
elif user and last_allowed is None:
|
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))
|
location = "/%s/" % str(quote(user))
|
||||||
if location == environ["PATH_INFO"]:
|
log.LOGGER.info("redirecting to %s" % location)
|
||||||
# We already have redirected the client
|
status = client.FOUND
|
||||||
status, headers, answer = function(
|
headers = {"Location": location}
|
||||||
environ, calendars, content, user)
|
answer = "Redirecting to %s" % location
|
||||||
else:
|
|
||||||
# Redirect the client
|
|
||||||
log.LOGGER.info("redirecting to %s" % location)
|
|
||||||
status = client.FOUND
|
|
||||||
headers = {"Location": location}
|
|
||||||
answer = "Redirecting to %s" % location
|
|
||||||
else:
|
else:
|
||||||
# Unknown or unauthorized user
|
# Unknown or unauthorized user
|
||||||
status = client.UNAUTHORIZED
|
status = client.UNAUTHORIZED
|
||||||
|
Loading…
Reference in New Issue
Block a user