[CalendarServer-changes] [9449] CalendarServer/branches/users/gaya/inviteclean/txdav/common/ iinvitation.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Jul 13 15:19:13 PDT 2012


Revision: 9449
          http://trac.macosforge.org/projects/calendarserver/changeset/9449
Author:   gaya at apple.com
Date:     2012-07-13 15:19:12 -0700 (Fri, 13 Jul 2012)
Log Message:
-----------
sharerAccess -> shareeAccess

Added Paths:
-----------
    CalendarServer/branches/users/gaya/inviteclean/txdav/common/iinvitation.py

Added: CalendarServer/branches/users/gaya/inviteclean/txdav/common/iinvitation.py
===================================================================
--- CalendarServer/branches/users/gaya/inviteclean/txdav/common/iinvitation.py	                        (rev 0)
+++ CalendarServer/branches/users/gaya/inviteclean/txdav/common/iinvitation.py	2012-07-13 22:19:12 UTC (rev 9449)
@@ -0,0 +1,80 @@
+##
+# Copyright (c) 2012 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+"""
+Common invitation interface
+"""
+
+from zope.interface.interface import Interface
+
+
+__all__ = [
+    "IInvite",
+]
+
+class IInvite(Interface):
+    """
+    IInvite.  The state of the an invitation to a shared resource.
+    
+    """
+  
+def uid():
+    """
+    Unique identifier for this invitation.  Randomly generated.
+
+    @return: the invite unique identifier
+    @rtype: C{str}
+    """
+
+def sharerUID():
+    """
+    Sharer's unique identifier.
+
+    @return: the Sharer's unique identifier.
+    @rtype: C{str}
+    """
+
+def shareeUID():
+    """
+    Sharee's unique identifier.
+
+    @return: the Sharee's unique identifier.
+    @rtype: C{str}
+    """
+
+def shareeAccess():
+    """
+    Sharee's access.  Currently, one of "own", "read-only", or "read-write".
+
+    @return: the Sharee's access to the shared resource
+    @rtype: C{str}
+    """
+
+def state():
+    """
+    Invite or bind state.  Currently, one of "NEEDS-ACTION","ACCEPTED", "DECLINED", "INVALID".
+
+    @return: the invitation state
+    @rtype: C{str}
+    """
+
+def summary():
+    """
+    The shared resource's name, purpose, or description.
+
+    @return: the summary
+    @rtype: C{str}
+    """
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120713/a5b883df/attachment.html>


More information about the calendarserver-changes mailing list