[CalendarServer-changes] [7091] CalendarServer/trunk/txdav/caldav/datastore/util.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Mar 1 13:07:23 PST 2011
Revision: 7091
http://trac.macosforge.org/projects/calendarserver/changeset/7091
Author: cdaboo at apple.com
Date: 2011-03-01 13:07:21 -0800 (Tue, 01 Mar 2011)
Log Message:
-----------
Handle trailing slash in X-APPLE-DROPBOX.
Modified Paths:
--------------
CalendarServer/trunk/txdav/caldav/datastore/util.py
Modified: CalendarServer/trunk/txdav/caldav/datastore/util.py
===================================================================
--- CalendarServer/trunk/txdav/caldav/datastore/util.py 2011-03-01 20:28:29 UTC (rev 7090)
+++ CalendarServer/trunk/txdav/caldav/datastore/util.py 2011-03-01 21:07:21 UTC (rev 7091)
@@ -83,7 +83,7 @@
dropboxProperty = (yield calendarObject.component(
)).getFirstPropertyInAnyComponent("X-APPLE-DROPBOX")
if dropboxProperty is not None:
- componentDropboxID = dropboxProperty.value().split("/")[-1]
+ componentDropboxID = dropboxProperty.value().rstrip("/").split("/")[-1]
returnValue(componentDropboxID)
# Now look at each ATTACH property and see if it might be a dropbox item
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110301/44a1dc27/attachment.html>
More information about the calendarserver-changes
mailing list