[CalendarServer-changes] [9437] CalendarServer/branches/users/gaya/inviteclean/txdav/common/iinvite. py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jul 12 12:20:18 PDT 2012


Revision: 9437
          http://trac.macosforge.org/projects/calendarserver/changeset/9437
Author:   gaya at apple.com
Date:     2012-07-12 12:20:17 -0700 (Thu, 12 Jul 2012)
Log Message:
-----------
First checked in.   IInvite may not be needed.  A tuple may do for reading invite state.  Writing may only include changed values, not entire invite state.

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

Added: CalendarServer/branches/users/gaya/inviteclean/txdav/common/iinvite.py
===================================================================
--- CalendarServer/branches/users/gaya/inviteclean/txdav/common/iinvite.py	                        (rev 0)
+++ CalendarServer/branches/users/gaya/inviteclean/txdav/common/iinvite.py	2012-07-12 19:20:17 UTC (rev 9437)
@@ -0,0 +1,38 @@
+##
+# 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 invite interface
+"""
+
+from zope.interface.interface import Interface, Attribute
+
+
+__all__ = [
+    "IInvite",
+]
+
+class IInvite(Interface):
+    """
+    Invite.  The state of the an invitation to a shared resource
+    """
+    
+    inviteUID = Attribute("""Unique identifier for this invitation.  Randomly generated.  @type: C{str}""")
+    shareeUID = Attribute("""Sharee's principal unique identifier.  @type: C{str}""")
+    sharerUID = Attribute("""Sharer's principal unique identifier.  @type: C{str}""")
+    sharerAccess = Attribute("""Sharer's access.  Currently, one of "own", "read-only", or "read-write".  @type: C{str}""")
+    state = Attribute("""Sharer's access.  Currently, one of "NEEDS-ACTION","ACCEPTED", "DECLINED", "INVALID".  @type: C{str}""")
+    summary = Attribute("""Sharee's summary of this shared resource's name, purpose, or description.  @type: C{str}""")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120712/c23b730f/attachment.html>


More information about the calendarserver-changes mailing list