mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 19:35:38 +00:00
Monotone-Parent: 337924e6726c6500e1c6fb527d7aa68336314c02
Monotone-Revision: 5e7e2018cb3fa2625cceaaa04d46251c7d1bbd09 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-07-09T16:02:42 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2008-07-09 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject
|
||||
-PUTAction:_ctx]): increment the version number only if the record
|
||||
is not new.
|
||||
|
||||
* SoObjects/Appointments/SOGoAppointmentFolder.m
|
||||
([SOGoAppointmentFolder -davCalendarFreeBusySet]): new method that
|
||||
returns the HREF to the calendars involved in the user's freebusy.
|
||||
|
||||
@@ -23,6 +23,10 @@
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
#import <NGObjWeb/WOContext.h>
|
||||
#import <NGObjWeb/WORequest+So.h>
|
||||
#import <NGObjWeb/NSException+HTTP.h>
|
||||
|
||||
#import "SOGoAppointmentFolder.h"
|
||||
|
||||
#import "SOGoAppointmentFolders.h"
|
||||
@@ -44,6 +48,42 @@
|
||||
return [self labelForKey: @"Personal Calendar"];
|
||||
}
|
||||
|
||||
- (id) lookupName: (NSString *) name
|
||||
inContext: (WOContext *) lookupContext
|
||||
acquire: (BOOL) acquire
|
||||
{
|
||||
id obj;
|
||||
WORequest *rq;
|
||||
|
||||
obj = [super lookupName: name inContext: lookupContext acquire: NO];
|
||||
|
||||
rq = [context request];
|
||||
if ([rq isSoWebDAVRequest]
|
||||
&& [[rq method] isEqualToString: @"MKCALENDAR"])
|
||||
{
|
||||
if (obj)
|
||||
obj = [NSException exceptionWithHTTPStatus: 403];
|
||||
else
|
||||
{
|
||||
obj = [self newFolderWithName: name andNameInContainer: name];
|
||||
if (!obj)
|
||||
obj = [super lookupName: name inContext: lookupContext acquire: NO];
|
||||
}
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
- (id) doMKCALENDAR: (id) test
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (id) MKCALENDARAction: (id) localContext
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
#warning THIS CAUSES LIGHTNING TO FAIL (that is why its commented out)
|
||||
// - (NSArray *) davComplianceClassesInContext: (id)_ctx
|
||||
// {
|
||||
|
||||
@@ -306,7 +306,8 @@
|
||||
response = (WOResponse *) error;
|
||||
else
|
||||
{
|
||||
version++;
|
||||
if (!isNew)
|
||||
version++;
|
||||
response = [_ctx response];
|
||||
/* setup response */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user