Monotone-Parent: e000b5c0e80fdd3891b4885ea6b27d82edaf8572

Monotone-Revision: 9755daf6ba583e833c7bab387fc5e777c6272bd1

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-08-14T12:22:33
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
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>
* SoObjects/SOGo/LDAPSource.m: the objectClass are now all added

View File

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