iCal bootstrapping using a default URL works

This commit is contained in:
Lukasz Langa
2011-06-01 22:33:18 +02:00
parent 1510e6c194
commit f7868afed1
3 changed files with 12 additions and 6 deletions

View File

@@ -169,6 +169,7 @@ class Application(object):
auth = authorization.lstrip("Basic").strip().encode("ascii")
user, password = self.decode(
base64.b64decode(auth), environ).split(":")
environ['USER'] = user
else:
user = password = None
@@ -290,7 +291,7 @@ class Application(object):
"DAV": "1, calendar-access",
"Content-Type": "text/xml"}
answer = xmlutils.propfind(
environ["PATH_INFO"], content, calendars)
environ["PATH_INFO"], content, calendars, environ.get("USER"))
return client.MULTI_STATUS, headers, answer
def proppatch(self, environ, calendars, content):