Revision
3599
Author
wsanchez@apple.com
Date
2009-01-19 17:13:51 -0800 (Mon, 19 Jan 2009)

Log Message

Have indexedSearch handle None filter

Modified Paths

Diff

Modified: CalendarServer/trunk/twistedcaldav/index.py (3598 => 3599)


--- CalendarServer/trunk/twistedcaldav/index.py	2009-01-19 23:36:19 UTC (rev 3598)
+++ CalendarServer/trunk/twistedcaldav/index.py	2009-01-20 01:13:51 UTC (rev 3599)
@@ -299,12 +299,11 @@
             qualifiers = None
 
         # Perform the search
-        if qualifiers is not None:
+        if qualifiers is None:
+            rowiter = self._db_execute("select NAME, UID, TYPE from RESOURCE")
+        else:
             rowiter = self._db_execute("select DISTINCT RESOURCE.NAME, RESOURCE.UID, RESOURCE.TYPE" + qualifiers[0], *qualifiers[1])
 
-        else:
-            raise IndexedSearchException()
-
         # Check result for missing resources
 
         for row in rowiter:
@@ -316,8 +315,6 @@
                         % (name, self.resource))
                 self.deleteResource(name)
 
-
-
     def bruteForceSearch(self):
         """
         List the whole index and tests for existence, updating the index