[CalendarServer-changes] [6041] CalendarServer/branches/users/glyph/sql-store/twistedcaldav/sharing. py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Aug 10 19:42:31 PDT 2010
Revision: 6041
http://trac.macosforge.org/projects/calendarserver/changeset/6041
Author: glyph at apple.com
Date: 2010-08-10 19:42:30 -0700 (Tue, 10 Aug 2010)
Log Message:
-----------
report 500s as 500s, don't mask them as 400s
Modified Paths:
--------------
CalendarServer/branches/users/glyph/sql-store/twistedcaldav/sharing.py
Modified: CalendarServer/branches/users/glyph/sql-store/twistedcaldav/sharing.py
===================================================================
--- CalendarServer/branches/users/glyph/sql-store/twistedcaldav/sharing.py 2010-08-10 22:11:32 UTC (rev 6040)
+++ CalendarServer/branches/users/glyph/sql-store/twistedcaldav/sharing.py 2010-08-11 02:42:30 UTC (rev 6041)
@@ -343,8 +343,9 @@
def validUserIDForShare(self, userid):
"""
- Test the user id to see if it is a valid identifier for sharing and return a "normalized"
- form for our own use (e.g. convert mailto: to urn:uuid).
+ Test the user id to see if it is a valid identifier for sharing and
+ return a "normalized" form for our own use (e.g. convert mailto: to
+ urn:uuid).
@param userid: the userid to test
@type userid: C{str}
@@ -582,7 +583,7 @@
def _handleErrorResponse(error):
if isinstance(error.value, HTTPError) and hasattr(error.value, "response"):
return error.value.response
- return Response(code=responsecode.BAD_REQUEST)
+ return error
def _handleInvite(invitedoc):
def _handleInviteSet(inviteset):
@@ -1111,7 +1112,7 @@
def _handleErrorResponse(error):
if isinstance(error.value, HTTPError) and hasattr(error.value, "response"):
return error.value.response
- return Response(code=responsecode.BAD_REQUEST)
+ return error
def _handleInviteReply(invitereplydoc):
""" Handle a user accepting or declining a sharing invite """
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100810/823d5f9a/attachment-0001.html>
More information about the calendarserver-changes
mailing list