Monotone-Parent: aac4c2b6ef4eb503b192dfb0ac6784b3f50c3f4c

Monotone-Revision: 3b8627a8b52c86d059ada9c0387459d8654bb482

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-11-09T16:12:24
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-11-09 16:12:24 +00:00
parent 458280a93b
commit b3bd3c5adf
4 changed files with 29 additions and 12 deletions
+14
View File
@@ -1,3 +1,17 @@
2007-11-09 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoObject.m ([SOGoObject
-lookupName:lookupNameinContext:localContextacquire:acquire]):
overriden method to bind looked up keys to So methods but by
avoiding a call to toOneRelationshipKeys. This will be the top
method of the chain, meant to override SoObject's behaviour.
* SoObjects/Contacts/SOGoContactLDAPFolder.m
([SOGoContactLDAPFolder
-lookupName:objectNameinContext:lookupContextacquire:acquire]):
removed hack to prevent [super lookupName...] to read the entire
LDAP directory when looking up a record.
2007-11-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder
@@ -34,7 +34,6 @@
{
LDAPSource *ldapSource;
NSMutableDictionary *entries;
BOOL ignoreSoObjectHunger;
}
+ (id) folderWithName: (NSString *) aName
+1 -11
View File
@@ -101,7 +101,6 @@
displayName = nil;
entries = nil;
ldapSource = nil;
ignoreSoObjectHunger = NO;
}
return self;
@@ -153,9 +152,7 @@
//NSLog (@"looking up name '%@'...", objectName);
/* first check attributes directly bound to the application */
ignoreSoObjectHunger = YES;
obj = [super lookupName: objectName inContext: lookupContext acquire: NO];
ignoreSoObjectHunger = NO;
if (!obj)
{
@@ -172,14 +169,7 @@
- (NSArray *) toOneRelationshipKeys
{
NSArray *keys;
if (ignoreSoObjectHunger)
keys = nil;
else
keys = [ldapSource allEntryIDs];
return keys;
return [ldapSource allEntryIDs];
}
- (NSArray *) _flattenedRecords: (NSArray *) records
+14
View File
@@ -33,6 +33,7 @@
#import <Foundation/NSURL.h>
#import <Foundation/NSValue.h>
#import <NGObjWeb/SoClass.h>
#import <NGObjWeb/SoClassSecurityInfo.h>
#import <NGObjWeb/SoObject+SoDAV.h>
#import <NGObjWeb/WEClientCapabilities.h>
@@ -552,6 +553,19 @@ static BOOL kontactGroupDAV = YES;
return ma;
}
- (id) lookupName: (NSString *) lookupName
inContext: (id) localContext
acquire: (BOOL) acquire
{
id obj;
obj = [[self soClass] lookupKey: lookupName inContext: localContext];
if (obj)
[obj bindToObject: self inContext: localContext];
return obj;
}
/* looking up shared objects */
- (SOGoUserFolder *) lookupUserFolder