[CalendarServer-changes] [14516] CalendarServer/trunk/txdav/common/datastore/podding/sharing_invites .py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Mar 5 14:52:53 PST 2015
Revision: 14516
http://trac.calendarserver.org//changeset/14516
Author: wsanchez at apple.com
Date: 2015-03-05 14:52:53 -0800 (Thu, 05 Mar 2015)
Log Message:
-----------
lint
Modified Paths:
--------------
CalendarServer/trunk/txdav/common/datastore/podding/sharing_invites.py
Modified: CalendarServer/trunk/txdav/common/datastore/podding/sharing_invites.py
===================================================================
--- CalendarServer/trunk/txdav/common/datastore/podding/sharing_invites.py 2015-03-05 22:11:06 UTC (rev 14515)
+++ CalendarServer/trunk/txdav/common/datastore/podding/sharing_invites.py 2015-03-05 22:52:53 UTC (rev 14516)
@@ -26,33 +26,48 @@
"""
@inlineCallbacks
- def send_shareinvite(self, txn, homeType, ownerUID, ownerID, ownerName, shareeUID, shareUID, bindMode, summary, copy_properties, supported_components):
+ def send_shareinvite(
+ self, txn, homeType, ownerUID, ownerID, ownerName,
+ shareeUID, shareUID, bindMode,
+ summary, copy_properties, supported_components
+ ):
"""
Send a sharing invite cross-pod message.
@param homeType: Type of home being shared.
@type homeType: C{int}
+
@param ownerUID: UID of the sharer.
@type ownerUID: C{str}
+
@param ownerID: resource ID of the sharer calendar
@type ownerID: C{int}
+
@param ownerName: owner's name of the sharer calendar
@type ownerName: C{str}
+
@param shareeUID: UID of the sharee
@type shareeUID: C{str}
+
@param shareUID: Resource/invite ID for sharee
@type shareUID: C{str}
+
@param bindMode: bind mode for the share
@type bindMode: C{str}
+
@param summary: sharing message
@type summary: C{str}
+
@param copy_properties: C{str} name/value for properties to be copied
@type copy_properties: C{dict}
+
@param supported_components: supproted components, may be C{None}
@type supported_components: C{str}
"""
- _ignore_sender, recipient = yield self.validRequest(ownerUID, shareeUID)
+ _ignore_sender, recipient = yield self.validRequest(
+ ownerUID, shareeUID
+ )
request = {
"action": "shareinvite",
@@ -75,14 +90,17 @@
@inlineCallbacks
def recv_shareinvite(self, txn, request):
"""
- Process a sharing invite cross-pod request. Request arguments as per L{send_shareinvite}.
+ Process a sharing invite cross-pod request.
+ Request arguments as per L{send_shareinvite}.
@param request: request arguments
@type request: C{dict}
"""
# Sharee home on this pod must exist (create if needed)
- shareeHome = yield txn.homeWithUID(request["type"], request["sharee"], create=True)
+ shareeHome = yield txn.homeWithUID(
+ request["type"], request["sharee"], create=True
+ )
if shareeHome is None or shareeHome.external():
raise FailedCrossPodRequestError("Invalid sharee UID specified")
@@ -100,23 +118,31 @@
@inlineCallbacks
- def send_shareuninvite(self, txn, homeType, ownerUID, ownerID, shareeUID, shareUID):
+ def send_shareuninvite(
+ self, txn, homeType, ownerUID, ownerID, shareeUID, shareUID
+ ):
"""
Send a sharing uninvite cross-pod message.
@param homeType: Type of home being shared.
@type homeType: C{int}
+
@param ownerUID: UID of the sharer.
@type ownerUID: C{str}
+
@param ownerID: resource ID of the sharer calendar
@type ownerID: C{int}
+
@param shareeUID: UID of the sharee
@type shareeUID: C{str}
+
@param shareUID: Resource/invite ID for sharee
@type shareUID: C{str}
"""
- _ignore_sender, recipient = yield self.validRequest(ownerUID, shareeUID)
+ _ignore_sender, recipient = yield self.validRequest(
+ ownerUID, shareeUID
+ )
request = {
"action": "shareuninvite",
@@ -133,7 +159,8 @@
@inlineCallbacks
def recv_shareuninvite(self, txn, request):
"""
- Process a sharing uninvite cross-pod request. Request arguments as per L{send_shareuninvite}.
+ Process a sharing uninvite cross-pod request.
+ Request arguments as per L{send_shareuninvite}.
@param request: request arguments
@type request: C{dict}
@@ -153,7 +180,10 @@
@inlineCallbacks
- def send_sharereply(self, txn, homeType, ownerUID, shareeUID, shareUID, bindStatus, summary=None):
+ def send_sharereply(
+ self, txn, homeType, ownerUID,
+ shareeUID, shareUID, bindStatus, summary=None
+ ):
"""
Send a sharing reply cross-pod message.
@@ -171,7 +201,9 @@
@type summary: C{str}
"""
- _ignore_sender, recipient = yield self.validRequest(shareeUID, ownerUID)
+ _ignore_sender, recipient = yield self.validRequest(
+ shareeUID, ownerUID
+ )
request = {
"action": "sharereply",
@@ -190,7 +222,8 @@
@inlineCallbacks
def recv_sharereply(self, txn, request):
"""
- Process a sharing reply cross-pod request. Request arguments as per L{send_sharereply}.
+ Process a sharing reply cross-pod request.
+ Request arguments as per L{send_sharereply}.
@param request: request arguments
@type request: C{dict}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150305/ce3fefa2/attachment.html>
More information about the calendarserver-changes
mailing list