/*
- Copyright (C) 2000-2003 SKYRIX Software AG
+ Copyright (C) 2002-2004 SKYRIX Software AG
- This file is part of OGo
+ This file is part of OpenGroupware.org.
OGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#include "SoObject+SoDAV.h"
#include "SoObject.h"
if ((q = (void *)[_fs qualifier])) {
if (![q evaluateWithObject:self]) {
- [self debugWithFormat:@" self doesn't match qualifier."];
+ [self debugWithFormat:@" self does not match qualifier."];
return [NSArray array];
}
}
if ((keys = [_fs selectedWebDAVPropertyNames]) == nil) {
/*
- Note: this shouldn't happen anymore, a default-set will be used by
+ Note: this should not happen anymore, a default-set will be used by
the dispatcher.
*/
keys = [[self soClassDescription] attributeKeys];
if ([_fs queryWebDAVPropertyNamesOnly]) {
/* how does the renderer know, that these are the keys ? */
[self debugWithFormat:@"deliver keys only: %@", keys];
- return [NSArray arrayWithObject:keys];
+ return keys != nil ? [NSArray arrayWithObject:keys] : nil;
}
+ // TODO: we should map out certain keys, like 'retain', 'release' etc!
if ((values = [self valuesForKeys:keys]) == nil)
return nil;
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#include "SoObjectWebDAVDispatcher.h"
#include "SoObject.h"
{
NSDictionary *map;
- if ((map = [self->object davAttributeMapInContext:_ctx])) {
+ if ((map = [self->object davAttributeMapInContext:_ctx]) != nil) {
[_ctx setObject:map forKey:@"DAVPropertyMap"];
fs = [fs fetchSpecificationByApplyingKeyMap:map];
[_ctx setObject:fs forKey:@"DAVMappedFetchSpecification"];
+ if (debugOn) [self logWithFormat:@" remapped fetchspec: %@", fs];
}
}