[CalendarServer-changes] [5380] CalendarServer/trunk/txdav/idav.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Mar 22 20:18:27 PDT 2010
Revision: 5380
http://trac.macosforge.org/projects/calendarserver/changeset/5380
Author: wsanchez at apple.com
Date: 2010-03-22 20:18:24 -0700 (Mon, 22 Mar 2010)
Log Message:
-----------
Add PropertyChangeNotAllowedError
Modified Paths:
--------------
CalendarServer/trunk/txdav/idav.py
Modified: CalendarServer/trunk/txdav/idav.py
===================================================================
--- CalendarServer/trunk/txdav/idav.py 2010-03-23 03:00:05 UTC (rev 5379)
+++ CalendarServer/trunk/txdav/idav.py 2010-03-23 03:18:24 UTC (rev 5380)
@@ -20,6 +20,7 @@
__all__ = [
"PropertyStoreError",
+ "PropertyChangeNotAllowedError",
"IPropertyName",
"IPropertyStore",
]
@@ -29,12 +30,28 @@
from zope.interface.common.mapping import IMapping
+#
+# Exceptions
+#
+
class PropertyStoreError(RuntimeError):
"""
Property store error.
"""
+class PropertyChangeNotAllowedError(PropertyStoreError):
+ """
+ Property cannot be edited.
+ """
+ def __init__(self, message, keys):
+ PropertyStoreError.__init__(self, message)
+ self.keys = keys
+
+#
+# Interfaces
+#
+
class IPropertyName(Interface):
"""
Property name.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100322/d2487b6a/attachment-0001.html>
More information about the calendarserver-changes
mailing list