Monotone-Parent: a09bb98f042f5485200b06b6f1b4c5b7c4d18f4a

Monotone-Revision: 4ae4bf02420bd47acf6c83bbd0372f4d9ba89026

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-11-29T21:10:39
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-11-29 21:10:39 +00:00
parent ed317d2510
commit 0b87cd3479
2 changed files with 13 additions and 6 deletions

View File

@@ -80,6 +80,8 @@ static NSString *defaultUserID = @"<default>";
newFolder = [self objectWithName: folderName inContainer: aContainer];
[newFolder setOCSPath: path];
[newFolder setOwner: login];
if (![newFolder displayName])
newFolder = nil;
return newFolder;
}
@@ -88,10 +90,10 @@ static NSString *defaultUserID = @"<default>";
{
if ((self = [super init]))
{
displayName = nil;
ocsPath = nil;
ocsFolder = nil;
aclCache = [NSMutableDictionary new];
[self _fetchDisplayName];
}
return self;
@@ -164,9 +166,6 @@ static NSString *defaultUserID = @"<default>";
- (NSString *) displayName
{
if (!displayName)
[self _fetchDisplayName];
return displayName;
}

View File

@@ -166,6 +166,11 @@
{
}
- (void) _removeSubscribedSource: (NSString *) key
{
#warning TO BE IMPLEMENTED SOON FIXME
}
- (void) appendSubscribedSources
{
NSArray *subscribedReferences;
@@ -186,8 +191,11 @@
subscribedFolder
= [subFolderClass folderWithSubscriptionReference: currentKey
inContainer: self];
[subFolders setObject: subscribedFolder
forKey: [subscribedFolder nameInContainer]];
if (subscribedFolder)
[subFolders setObject: subscribedFolder
forKey: [subscribedFolder nameInContainer]];
else
[self _removeSubscribedSource: currentKey];
currentKey = [allKeys nextObject];
}
}