1.1 --- a/examples/Common/Calendar/__init__.py Wed Aug 24 23:42:32 2005 +0000
1.2 +++ b/examples/Common/Calendar/__init__.py Thu Aug 25 13:29:40 2005 +0000
1.3 @@ -16,6 +16,7 @@
1.4 """
1.5
1.6 resource_dir = os.path.join(os.path.split(__file__)[0], "calendars")
1.7 + urlencoding = "utf-8"
1.8
1.9 def __init__(self):
1.10 if not os.path.exists(self.resource_dir):
1.11 @@ -40,7 +41,7 @@
1.12 # NOTE: We always assume that calendar files are being uploaded.
1.13
1.14 content_type = trans.get_content_type()
1.15 - calendar_name = trans.get_virtual_path_info().split("/")[-1]
1.16 + calendar_name = trans.get_virtual_path_info(self.urlencoding).split("/")[-1]
1.17
1.18 # Handle uploads.
1.19
1.20 @@ -68,7 +69,7 @@
1.21 <D:multistatus xmlns:D="DAV:">
1.22 """)
1.23
1.24 - if trans.get_virtual_path_info() == "/":
1.25 + if trans.get_virtual_path_info(self.urlencoding) == "/":
1.26 time_now = time.strftime("%Y-%m-%dT%TZ", time.gmtime(time.time()))
1.27 out.write("""
1.28 <D:response>