[CalendarServer-changes] [9155] CalendarServer/branches/users/gaya/ldapdirectorybacker/twistedcaldav /directory/opendirectorybacker.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 19 15:05:01 PDT 2012
Revision: 9155
http://trac.macosforge.org/projects/calendarserver/changeset/9155
Author: gaya at apple.com
Date: 2012-04-19 15:05:01 -0700 (Thu, 19 Apr 2012)
Log Message:
-----------
fix comments
Modified Paths:
--------------
CalendarServer/branches/users/gaya/ldapdirectorybacker/twistedcaldav/directory/opendirectorybacker.py
Modified: CalendarServer/branches/users/gaya/ldapdirectorybacker/twistedcaldav/directory/opendirectorybacker.py
===================================================================
--- CalendarServer/branches/users/gaya/ldapdirectorybacker/twistedcaldav/directory/opendirectorybacker.py 2012-04-19 20:44:55 UTC (rev 9154)
+++ CalendarServer/branches/users/gaya/ldapdirectorybacker/twistedcaldav/directory/opendirectorybacker.py 2012-04-19 22:05:01 UTC (rev 9155)
@@ -610,13 +610,17 @@
"""
Convert the supplied addressbook-query into a ds expression tree.
- @param filter: the L{Filter} for the addressbook-query to convert.
+ @param addressBookFilter: the L{Filter} for the addressbook-query to convert.
+ @param vcardPropToSearchableAttrMap: a mapping from vcard properties to query attributes.
+ @param vcardPropToUnsearchableAttrMap: a mapping from vcard properties to unsearchable query attributes. (unused)
+ @param constantProperties: a mapping of constant properties. A query on a constant property will return all or None
@return: (needsAllRecords, expressionAttributes, expression) tuple
"""
#TODO: 1. get rid of needsAllRecords: instead should be: expression==None means list all results, expression==False means no results
- # 2. expressionAttributes returned is incorrect in many cases for "return (xxx, [], [])" below
+ # 2. expressionAttributes returned is incorrect in many cases: e.g. "return (xxx, [], [])" below
+ # but needs a full mapping. Perhaps this call should return a propFilter.filter_name list instead
# 3. vcardPropToUnsearchableAttrMap is unused by callers. In the past, vcardPropToUnsearchableAttrMap was that part of vCardProp map
- # containing binary attributes.
+ # containing binary attributes. Current behavior is that properties not in vcardPropToSearchableAttrMap are ignored.
#
def propFilterListQuery(filterAllOf, propFilters):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120419/b2ba8316/attachment-0001.html>
More information about the calendarserver-changes
mailing list