Monotone-Parent: ab2613d820779df99f34c6d0ae2ec38908cae05f

Monotone-Revision: 28cde865644a3171d49fc0d08dad0efa39112fa2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-04-19T21:30:25
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-04-19 21:30:25 +00:00
parent bed2246b97
commit add1d5441a
23 changed files with 124 additions and 49 deletions
+1 -26
View File
@@ -124,32 +124,7 @@
- (WOResponse *) reloadWebCalendarsAction
{
SOGoUserSettings *settings;
NSMutableDictionary *calSettings, *webCalendars;
NSArray *calendarIds;
SOGoWebAppointmentFolder *folder;
NSString *name, *url;
int i, count, imported;
settings = [[context activeUser] userSettings];
calSettings = [settings objectForKey: @"Calendar"];
webCalendars = [calSettings objectForKey: @"WebCalendars"];
if (webCalendars)
{
calendarIds = [webCalendars allKeys];
count = [calendarIds count];
for (i = 0; i < count; i++)
{
name = [calendarIds objectAtIndex: i];
url = [webCalendars objectForKey: name];
folder = [[self clientObject] lookupName: name
inContext: context
acquire: NO];
if (folder)
imported = [folder loadWebCalendar: url];
}
}
[[self clientObject] reloadWebCalendars: YES];
return [self responseWith204];
}