EOAdaptorChannel *storeChannel, *quickChannel;
NSMutableDictionary *quickRow;
OCSFieldExtractor *extractor;
+
+ [self logWithFormat:@"SHOULD store content:\n%@", _content];
/* extract info */
extractor = [self->folderInfo quickExtractor];
quickRow = [extractor extractQuickFieldsFromContent:_content];
+
+ [self logWithFormat:@"SHOULD store quick: %@", quickRow];
/* open channels */
[self releaseChannel:storeChannel];
return nil;
}
-
+
// TODO: gen SQL, execute in transactions
[self releaseChannel:storeChannel];
return records;
}
+/* GET */
+
+- (id)GETAction:(WOContext *)_ctx {
+ // TODO: I guess this should really be done by SOPE (redirect to
+ // default method)
+ WOResponse *r;
+ NSString *uri;
+
+ uri = [[_ctx request] uri];
+ if (![uri hasSuffix:@"/"]) uri = [uri stringByAppendingString:@"/"];
+ uri = [uri stringByAppendingString:@"weekoverview"];
+
+ r = [_ctx response];
+ [r setStatus:302 /* moved */];
+ [r setHeader:uri forKey:@"location"];
+ return r;
+}
+
@end /* SOGoAppointmentFolder */
WOResponse *r;
NSString *uri, *uriFormat, *objectId, *nextMethod;
- /* clientObject *is* SOGoAppointmentFolder, so this should be an instance method? */
+ /*
+ clientObject *is* SOGoAppointmentFolder, so this should be an instance
+ method?
+ */
objectId = [NSClassFromString(@"SOGoAppointmentFolder")
globallyUniqueObjectId];
nextMethod = [NSString stringWithFormat:@"%@/edit", objectId];
- uriFormat = [self uriAsFormat];
+ uriFormat = [self uriAsFormat];
uri = [NSString stringWithFormat:uriFormat, nextMethod];
req = [[self context] request];