Monotone-Parent: e000b5c0e80fdd3891b4885ea6b27d82edaf8572

Monotone-Revision: 9755daf6ba583e833c7bab387fc5e777c6272bd1

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-08-14T12:22:33
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau 2009-08-14 12:22:33 +00:00
parent 15a8557fc0
commit 47e6a827ee
2 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2009-08-14 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* Tools/SOGoToolBackup.m (-extractUserPreferences:intoRecord:): we
must extract the values of the user defaults in order to put them
in the record dictionary. Putting the defaults themselves will
only produce serialized strings.
2009-08-13 Wolfgang Sourdeau <wsourdeau@inverse.ca> 2009-08-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/LDAPSource.m: the objectClass are now all added * SoObjects/SOGo/LDAPSource.m: the objectClass are now all added

View file

@ -36,11 +36,13 @@
#import <SOGo/LDAPSource.h> #import <SOGo/LDAPSource.h>
#import <SOGo/NSArray+Utilities.h> #import <SOGo/NSArray+Utilities.h>
#import <SOGo/SOGoUser.h> #import <SOGo/SOGoUser.h>
#import <SOGo/SOGoUserDefaults.h>
#import "NSDictionary+SOGoTool.h" #import "NSDictionary+SOGoTool.h"
#import "SOGoToolBackup.h" #import "SOGoToolBackup.h"
/* TODO: /* TODO:
- handle database connectivity errors
- respond to "--help backup" - respond to "--help backup"
- allow more than one user specifier on the command-line - allow more than one user specifier on the command-line
*/ */
@ -328,11 +330,13 @@
{ {
SOGoUser *sogoUser; SOGoUser *sogoUser;
NSArray *preferences; NSArray *preferences;
NSDictionary *defaultsValues, *settingsValues;
sogoUser = [SOGoUser userWithLogin: uid roles: nil]; sogoUser = [SOGoUser userWithLogin: uid roles: nil];
preferences = [NSArray arrayWithObjects: defaultsValues = [[sogoUser userDefaults] values];
[sogoUser userDefaults], settingsValues = [[sogoUser userSettings] values];
[sogoUser userSettings], nil]; preferences = [NSArray arrayWithObjects: defaultsValues, settingsValues,
nil];
[userRecord setObject: preferences forKey: @"preferences"]; [userRecord setObject: preferences forKey: @"preferences"];
return YES; return YES;