mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 12:25:23 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user