[CalendarServer-changes] [5032] CalendarServer/branches/users/glyph/contacts-server-merge/ twistedcaldav/directory/directory.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Feb 3 09:38:33 PST 2010


Revision: 5032
          http://trac.macosforge.org/projects/calendarserver/changeset/5032
Author:   glyph at apple.com
Date:     2010-02-03 09:38:32 -0800 (Wed, 03 Feb 2010)
Log Message:
-----------
Add trivial base-class implementation of requirements for directorybackedaddressbook.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/contacts-server-merge/twistedcaldav/directory/directory.py

Modified: CalendarServer/branches/users/glyph/contacts-server-merge/twistedcaldav/directory/directory.py
===================================================================
--- CalendarServer/branches/users/glyph/contacts-server-merge/twistedcaldav/directory/directory.py	2010-02-03 17:30:25 UTC (rev 5031)
+++ CalendarServer/branches/users/glyph/contacts-server-merge/twistedcaldav/directory/directory.py	2010-02-03 17:38:32 UTC (rev 5032)
@@ -80,6 +80,20 @@
     baseGUID = None
     guid = property(_generatedGUID)
 
+    # Needed by twistedcaldav.directorybackedaddressbook
+    liveQuery = False
+
+    def available(self):
+        """
+        By default, the directory is available.  This may return a boolean or a
+        Deferred which fires a boolean.
+
+        A return value of "False" means that the directory is currently
+        unavailable due to the service starting up.
+        """
+        return True
+    # end directorybackedaddressbook requirements
+
     ##
     # ICredentialsChecker
     ##
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100203/1e023b6b/attachment-0001.html>


More information about the calendarserver-changes mailing list