[CalendarServer-changes] [8367] CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Dec 2 09:56:34 PST 2011
Revision: 8367
http://trac.macosforge.org/projects/calendarserver/changeset/8367
Author: sagen at apple.com
Date: 2011-12-02 09:56:32 -0800 (Fri, 02 Dec 2011)
Log Message:
-----------
Skip HTML rendering of group members that are missing their record name.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py
Modified: CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py 2011-12-02 17:31:58 UTC (rev 8366)
+++ CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py 2011-12-02 17:56:32 UTC (rev 8367)
@@ -1231,10 +1231,11 @@
shortName = self.service._getUniqueLdapAttribute(attrs,
self.service.rdnSchema[recordType]["mapping"]["recordName"])
- record = self.service.recordWithShortName(recordType,
- shortName)
- if record:
- results.append(record)
+ if shortName:
+ record = self.service.recordWithShortName(recordType,
+ shortName)
+ if record:
+ results.append(record)
return results
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111202/7b1e12c6/attachment.html>
More information about the calendarserver-changes
mailing list