[CalendarServer-changes] [4026] CalendarServer/trunk/twistedcaldav/extensions.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 16 09:47:53 PDT 2009
Revision: 4026
http://trac.macosforge.org/projects/calendarserver/changeset/4026
Author: sagen at apple.com
Date: 2009-04-16 09:47:51 -0700 (Thu, 16 Apr 2009)
Log Message:
-----------
Fix for "500 error trying to render HTML for CalendarUserProxyPrincipalResource"
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/extensions.py
Modified: CalendarServer/trunk/twistedcaldav/extensions.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/extensions.py 2009-04-16 16:21:19 UTC (rev 4025)
+++ CalendarServer/trunk/twistedcaldav/extensions.py 2009-04-16 16:47:51 UTC (rev 4026)
@@ -700,9 +700,16 @@
))
elif name == "record-type":
- returnValue(customxml.RecordType(self.record.recordType))
+ if hasattr(self, "record"):
+ returnValue(customxml.RecordType(self.record.recordType))
+ else:
+ raise HTTPError(StatusResponse(
+ responsecode.NOT_FOUND,
+ "Property %s does not exist." % (qname,)
+ ))
+
result = (yield super(DAVPrincipalResource, self).readProperty(property, request))
returnValue(result)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090416/e5ce515a/attachment.html>
More information about the calendarserver-changes
mailing list