Monotone-Parent: 3c4bff66182b49f279964724e065b9b9a5bd8022

Monotone-Revision: 3e115caf9292772485392f689415b1620ec81d9e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-07-20T20:21:59
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-07-20 20:21:59 +00:00
parent a052aca642
commit 82be9a876a
2 changed files with 17 additions and 1 deletions
+6
View File
@@ -1,3 +1,9 @@
2007-07-20 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Contacts/SOGoContactLDAPFolder.m
([SOGoContactLDAPFolder -toOneRelationshipKeys]): check whether we
really should return something or if we fake to return nil...
2007-07-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoUser.m ([SOGoUser +initialize]): set
+11 -1
View File
@@ -73,6 +73,7 @@
displayName = nil;
entries = nil;
ldapSource = nil;
ignoreSoObjectHunger = NO;
}
return self;
@@ -119,7 +120,9 @@
// NSLog (@"looking up name '%@'...", name);
/* first check attributes directly bound to the application */
ignoreSoObjectHunger = YES;
obj = [super lookupName: objectName inContext: lookupContext acquire: NO];
ignoreSoObjectHunger = NO;
if (!obj)
{
ldifEntry = [ldapSource lookupContactEntry: objectName];
@@ -135,7 +138,14 @@
- (NSArray *) toOneRelationshipKeys
{
return [ldapSource allEntryIDs];
NSArray *keys;
if (ignoreSoObjectHunger)
keys = nil;
else
keys = [ldapSource allEntryIDs];
return keys;
}
- (NSArray *) lookupContactsWithFilter: (NSString *) filter