[CalendarServer-changes] [9446] CalendarServer/branches/users/gaya/inviteclean/txdav/common/iinvite. py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jul 13 13:14:21 PDT 2012
Revision: 9446
http://trac.macosforge.org/projects/calendarserver/changeset/9446
Author: gaya at apple.com
Date: 2012-07-13 13:14:20 -0700 (Fri, 13 Jul 2012)
Log Message:
-----------
change from attributes to regular def() interface.
Modified Paths:
--------------
CalendarServer/branches/users/gaya/inviteclean/txdav/common/iinvite.py
Modified: CalendarServer/branches/users/gaya/inviteclean/txdav/common/iinvite.py
===================================================================
--- CalendarServer/branches/users/gaya/inviteclean/txdav/common/iinvite.py 2012-07-13 15:09:13 UTC (rev 9445)
+++ CalendarServer/branches/users/gaya/inviteclean/txdav/common/iinvite.py 2012-07-13 20:14:20 UTC (rev 9446)
@@ -15,10 +15,10 @@
##
"""
-Common invite interface
+Common invitation interface
"""
-from zope.interface.interface import Interface, Attribute
+from zope.interface.interface import Interface
__all__ = [
@@ -27,12 +27,54 @@
class IInvite(Interface):
"""
- Invite. The state of the an invitation to a shared resource
+ 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}""")
+
+def uid():
+ """
+ Unique identifier for this invitation. Randomly generated.
+
+ @return: the invite unique identifier
+ @rtype: C{str}
+ """
+
+def shareeUID():
+ """
+ Sharee's unique identifier.
+
+ @return: the Sharee's unique identifier.
+ @rtype: C{str}
+ """
+
+def sharerUID():
+ """
+ Sharer's unique identifier.
+
+ @return: the Sharer's unique identifier.
+ @rtype: C{str}
+ """
+
+def sharerAccess():
+ """
+ Sharer's access. Currently, one of "own", "read-only", or "read-write".
+
+ @return: the Sharer's access to the shared resource
+ @rtype: C{str}
+ """
+
+def state():
+ """
+ Invitation 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/299fae35/attachment.html>
More information about the calendarserver-changes
mailing list