Monotone-Parent: 9f8af75f69269845084162a8844a51cf065ae8fc

Monotone-Revision: 54e08d70ed3b12e1a8bb0a68c590698753bb3e02

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-11-19T17:08:47
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-11-19 17:08:47 +00:00
parent 81997a8c8a
commit c94db02a33
7 changed files with 464 additions and 393 deletions
+23
View File
@@ -1,5 +1,28 @@
2009-11-19 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoUser.m (-userDefaults, -userSettings): the
cache handling has now been put in the SOGoUserDefaults class.
* SoObjects/SOGo/SOGoUserDefaults.m (-primaryFetchProfile): split
method to separate the cache data and the db data. We know invoke
the "jsonRepresentation" method, which is the real data accessor
now.
(-primaryStoreProfile): user profile data is now serialized as a
JSON string in order to avoid constant conversions between the
plist and the json formats, from and to the cache.
(-jsonRepresentation): we now handle the cache data from here, as
it made more sense and reduces the code size in SOGoUser.m.
(-fetchProfile): now a void method.
* SoObjects/SOGo/SOGoCache.m (+initialize): the memcached host can
now be configured using the "SOGoMemCachedHost" user default. The
method now contains initialization code for global vars that used
to be in -init instead.
(-userSettingsForLogin:,-userDefaultsForLogin:,-userAttributesForLogin:):
refactoring: those accessors now only return an NSString
associated with their respective key. There is no longer any
dictionary de-/serialization occuring in SOGoCache.
* SoObjects/SOGo/SOGoParentFolder.m (-subFolders): we raise the
exceptions we get only if the current request is a PROPFIND. This
avoids a useless restart of SOGo when the database is down during