[CalendarServer-changes] [1080]
CalendarServer/trunk/twistedcaldav/schedule.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jan 22 15:53:10 PST 2007
Revision: 1080
http://trac.macosforge.org/projects/calendarserver/changeset/1080
Author: wsanchez at apple.com
Date: 2007-01-22 15:53:09 -0800 (Mon, 22 Jan 2007)
Log Message:
-----------
log
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/schedule.py
Modified: CalendarServer/trunk/twistedcaldav/schedule.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/schedule.py 2007-01-20 01:11:02 UTC (rev 1079)
+++ CalendarServer/trunk/twistedcaldav/schedule.py 2007-01-22 23:53:09 UTC (rev 1080)
@@ -162,12 +162,14 @@
originator = originator[0]
# Verify that Originator is a valid calendar user (has an INBOX)
- inboxURL = None
oprincipal = self.principalForCalendarUserAddress(originator)
- if oprincipal is not None:
- inboxURL = oprincipal.scheduleInboxURL()
+ if oprincipal is None:
+ log.err("Could not find principal for originator: %s" % (originator,))
+ raise HTTPError(ErrorResponse(responsecode.FORBIDDEN, (caldav_namespace, "originator-allowed")))
+
+ inboxURL = oprincipal.scheduleInboxURL()
if inboxURL is None:
- log.err("Could not find Inbox for originator: %s" % (originator,))
+ log.err("Could not find inbox for originator: %s" % (originator,))
raise HTTPError(ErrorResponse(responsecode.FORBIDDEN, (caldav_namespace, "originator-allowed")))
# Get list of Recipient headers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070122/858b8893/attachment.html
More information about the calendarserver-changes
mailing list