mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-29 00:50:33 +00:00
UI/Scheduler/Toolbars/SOGoAppointmentFolders.toolbar
Monotone-Parent: c4c95e670daa9c22e838239469a51f3d23b84ab0 Monotone-Revision: 92e93f3527a76deed69fa61275517490d57f9a4f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-09-14T22:01:02 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#import <NGObjWeb/SoClassSecurityInfo.h>
|
||||
#import <NGExtensions/NSObject+Logs.h>
|
||||
|
||||
#import <Appointments/SOGoAppointmentFolder.h>
|
||||
#import <Appointments/SOGoAppointmentFolders.h>
|
||||
#import <Appointments/SOGoFreeBusyObject.h>
|
||||
#import <Contacts/SOGoContactFolders.h>
|
||||
#import <Mailer/SOGoMailAccounts.h>
|
||||
@@ -117,7 +117,7 @@
|
||||
|
||||
- (NSString *) ocsPrivateCalendarPath
|
||||
{
|
||||
return [[self ocsUserPath] stringByAppendingString:@"/Calendar/personal"];
|
||||
return [[self ocsUserPath] stringByAppendingString:@"/Calendar"];
|
||||
}
|
||||
|
||||
- (NSString *) ocsPrivateContactsPath
|
||||
@@ -134,15 +134,15 @@
|
||||
// : [super permissionForKey: key]);
|
||||
// }
|
||||
|
||||
- (SOGoAppointmentFolder *) privateCalendar: (NSString *) _key
|
||||
inContext: (WOContext *) _ctx
|
||||
- (SOGoAppointmentFolders *) privateCalendars: (NSString *) _key
|
||||
inContext: (WOContext *) _ctx
|
||||
{
|
||||
SOGoAppointmentFolder *calendar;
|
||||
SOGoAppointmentFolders *calendars;
|
||||
|
||||
calendar = [$(@"SOGoAppointmentFolder") objectWithName: _key inContainer: self];
|
||||
[calendar setOCSPath: [self ocsPrivateCalendarPath]];
|
||||
calendars = [$(@"SOGoAppointmentFolders") objectWithName: _key inContainer: self];
|
||||
[calendars setBaseOCSPath: [self ocsPrivateCalendarPath]];
|
||||
|
||||
return calendar;
|
||||
return calendars;
|
||||
}
|
||||
|
||||
- (SOGoContactFolders *) privateContacts: (NSString *) _key
|
||||
@@ -185,7 +185,7 @@
|
||||
if (!obj)
|
||||
{
|
||||
if ([_key isEqualToString: @"Calendar"])
|
||||
obj = [self privateCalendar: @"Calendar" inContext: _ctx];
|
||||
obj = [self privateCalendars: @"Calendar" inContext: _ctx];
|
||||
// if (![_key isEqualToString: @"Calendar"])
|
||||
// obj = [obj lookupName: [_key pathExtension]
|
||||
// inContext: _ctx acquire: NO];
|
||||
|
||||
Reference in New Issue
Block a user