[CalendarServer-changes] [5016] CalendarServer/trunk/txdav/idav.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Feb 2 13:36:41 PST 2010


Revision: 5016
          http://trac.macosforge.org/projects/calendarserver/changeset/5016
Author:   wsanchez at apple.com
Date:     2010-02-02 13:36:39 -0800 (Tue, 02 Feb 2010)
Log Message:
-----------
Add PropertyStoreError, IPropertyName

Modified Paths:
--------------
    CalendarServer/trunk/txdav/idav.py

Modified: CalendarServer/trunk/txdav/idav.py
===================================================================
--- CalendarServer/trunk/txdav/idav.py	2010-02-02 19:50:10 UTC (rev 5015)
+++ CalendarServer/trunk/txdav/idav.py	2010-02-02 21:36:39 UTC (rev 5016)
@@ -19,13 +19,37 @@
 """
 
 __all__ = [
+    "PropertyStoreError",
+    "IPropertyName",
     "IPropertyStore",
 ]
 
-#from zope.interface import Attribute, Interface
+from zope.interface import Attribute, Interface
 
 from zope.interface.common.mapping import IMapping
 
+
+class PropertyStoreError(RuntimeError):
+    """
+    Property store error.
+    """
+
+
+class IPropertyName(Interface):
+    """
+    Property name.
+    """
+    namespace = Attribute("Namespace")
+    name      = Attribute("Name")
+
+    def toString():
+        """
+        Returns the string representation of the property name.
+
+        @return: a string
+        """
+
+
 class IPropertyStore(IMapping):
     """
     WebDAV property store
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100202/ec65f8db/attachment.html>


More information about the calendarserver-changes mailing list