[CalendarServer-changes] [3599] CalendarServer/trunk/twistedcaldav/index.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jan 19 17:13:51 PST 2009
Revision: 3599
http://trac.macosforge.org/projects/calendarserver/changeset/3599
Author: wsanchez at apple.com
Date: 2009-01-19 17:13:51 -0800 (Mon, 19 Jan 2009)
Log Message:
-----------
Have indexedSearch handle None filter
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/index.py
Modified: CalendarServer/trunk/twistedcaldav/index.py
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090119/7bbbbdc6/attachment.html>
More information about the calendarserver-changes
mailing list