See ChangeLog

Monotone-Parent: 5f0b5fde09b45b6e60e9302afb433346dcc0c2b8
Monotone-Revision: 7d3c246e1b5f38cadd5bf14c9ca615f9af0f203e

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-03-27T18:46:45
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2011-03-27 18:46:45 +00:00
parent 8aebcff95b
commit 6bac931b69
7 changed files with 110 additions and 36 deletions
+27 -4
View File
@@ -1,7 +1,7 @@
/* SOGoGCSFolder.m - this file is part of SOGo
*
* Copyright (C) 2004-2005 SKYRIX Software AG
* Copyright (C) 2006-2010 Inverse inc.
* Copyright (C) 2006-2011 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
*
@@ -70,6 +70,7 @@
#import "SOGoParentFolder.h"
#import "SOGoPermissions.h"
#import "SOGoUser.h"
#import "SOGoSystemDefaults.h"
#import "SOGoUserDefaults.h"
#import "SOGoUserSettings.h"
#import "SOGoUserManager.h"
@@ -525,12 +526,34 @@ static NSArray *childRecordFields = nil;
}
}
//
// This method honors the SOGoLocalStorageURL preference in order
// to create the database tables at the preferred location instead of
// creating them in the same database as the one specified in the
// OCSFolderInfoURL preference. This is particularly useful for
// multi-sites deployments.
//
- (BOOL) create
{
GCSFolderManager *folderManager;
EOAdaptorChannel *channel;
NSException *result;
result = [[self folderManager] createFolderOfType: [self folderType]
withName: displayName
atPath: ocsPath];
NSString *s;
NSURL *url;
folderManager = [self folderManager];
channel = nil;
s = [[SOGoSystemDefaults sharedSystemDefaults] stringForKey: @"SOGoLocalStorageURL"];
url = nil;
if (s)
url = [NSURL URLWithString: s];
result = [folderManager createFolderOfType: [self folderType]
withName: displayName
atPath: ocsPath
andURL: url];
if (!result
&& [[context request] handledByDefaultHandler])