Monotone-Parent: 0575b0625d349718d3a000c6d46cac95612e6cfb

Monotone-Revision: 5bcd57a0e5cbbcf8047ad1d76568d8c74ced2932

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-02-18T22:36:00
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-02-18 22:36:00 +00:00
parent f0ba13c1dc
commit f20478142f
2 changed files with 12 additions and 15 deletions
+8 -15
View File
@@ -34,10 +34,11 @@
#import <GDLContentStore/NSURL+GCS.h>
#import <Appointments/iCalEntityObject+SOGo.h>
#import <SOGo/SOGoUserManager.h>
#import <SOGo/NSArray+Utilities.h>
#import <SOGo/SOGoProductLoader.h>
#import <SOGo/SOGoUser.h>
#import <SOGo/SOGoUserDefaults.h>
#import <SOGo/SOGoUserManager.h>
#import <SOGo/SOGoUserProfile.h>
#import <SOGo/SOGoUserSettings.h>
@@ -54,20 +55,6 @@
@implementation SOGoToolRestore
+ (void) initialize
{
NGBundleManager *bm;
/* we need to load the SOGo bundles here because OGoContentStore make use of
certain categories found therein */
bm = [NGBundleManager defaultBundleManager];
[bm setBundleSearchPaths: [NSArray arrayWithObject: SOGO_LIBDIR]];
[[bm bundleWithName: @"Appointments" type: @"SOGo"] load];
[[bm bundleWithName: @"Contacts" type: @"SOGo"] load];
[iCalEntityObject initializeSOGoExtensions];
}
+ (NSString *) command
{
return @"restore";
@@ -591,6 +578,12 @@
- (BOOL) run
{
[[SOGoProductLoader productLoader]
loadProducts: [NSArray arrayWithObjects: @"Contacts.SOGo",
@"Appointments.SOGo",
nil]];
[iCalEntityObject initializeSOGoExtensions];
return ([self parseArguments] && [self proceed]);
}