Clean and reorder calendar functions

This commit is contained in:
Guillaume Ayoub
2012-01-12 02:39:47 +01:00
parent b1414c152d
commit 022b2aa91f
4 changed files with 91 additions and 90 deletions

View File

@@ -269,7 +269,7 @@ class Application(object):
"""Manage DELETE request."""
calendar = calendars[0]
if calendar.local_path == environ["PATH_INFO"].strip("/"):
if calendar.path == environ["PATH_INFO"].strip("/"):
# Path matching the calendar, the item to delete is the calendar
item = calendar
else: