[CalendarServer-changes] [6902] CalendarServer/trunk/twistedcaldav/resource.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Feb 7 11:00:06 PST 2011
Revision: 6902
http://trac.macosforge.org/projects/calendarserver/changeset/6902
Author: cdaboo at apple.com
Date: 2011-02-07 11:00:04 -0800 (Mon, 07 Feb 2011)
Log Message:
-----------
No dead properties on principals.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/resource.py
Modified: CalendarServer/trunk/twistedcaldav/resource.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/resource.py 2011-02-07 12:42:09 UTC (rev 6901)
+++ CalendarServer/trunk/twistedcaldav/resource.py 2011-02-07 19:00:04 UTC (rev 6902)
@@ -1883,21 +1883,6 @@
result = (yield super(CalendarPrincipalResource, self).readProperty(property, request))
returnValue(result)
- def calendarHomeURLs(self):
- if self.hasDeadProperty((caldav_namespace, "calendar-home-set")):
- home_set = self.readDeadProperty((caldav_namespace, "calendar-home-set"))
- return [str(h) for h in home_set.children]
- else:
- return ()
-
- def calendarUserAddresses(self):
- if self.hasDeadProperty((caldav_namespace, "calendar-user-address-set")):
- addresses = self.readDeadProperty((caldav_namespace, "calendar-user-address-set"))
- return [str(h) for h in addresses.children]
- else:
- # Must have a valid address of some kind so use the principal uri
- return (self.principalURL(),)
-
def calendarFreeBusyURIs(self, request):
def gotInbox(inbox):
if inbox is None:
@@ -1928,47 +1913,6 @@
"""
return request.locateResource(self.scheduleInboxURL())
- def scheduleInboxURL(self):
- if self.hasDeadProperty((caldav_namespace, "schedule-inbox-URL")):
- inbox = self.readDeadProperty((caldav_namespace, "schedule-inbox-URL"))
- return str(inbox.children[0])
- else:
- return None
-
- def scheduleOutboxURL(self):
- """
- @return: the schedule outbox URL for this principal.
- """
- if self.hasDeadProperty((caldav_namespace, "schedule-outbox-URL")):
- outbox = self.readDeadProperty((caldav_namespace, "schedule-outbox-URL"))
- return str(outbox.children[0])
- else:
- return None
-
- def dropboxURL(self):
- """
- @return: the drop box home collection URL for this principal.
- """
- if self.hasDeadProperty((calendarserver_namespace, "dropbox-home-URL")):
- inbox = self.readDeadProperty((caldav_namespace, "dropbox-home-URL"))
- return str(inbox.children[0])
- else:
- return None
-
- def notificationURL(self, request=None):
- if self.hasDeadProperty((calendarserver_namespace, "notification-URL")):
- notification = self.readDeadProperty((calendarserver_namespace, "notification-URL"))
- return succeed(str(notification.children[0]))
- else:
- return succeed(None)
-
- def addressBookHomeURLs(self):
- if self.hasDeadProperty((carddav_namespace, "addressbook-home-set")):
- home_set = self.readDeadProperty((carddav_namespace, "addressbook-home-set"))
- return [str(h) for h in home_set.children]
- else:
- return ()
-
##
# Quota
##
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110207/56ff45cc/attachment.html>
More information about the calendarserver-changes
mailing list