/*
- Copyright (C) 2000-2003 SKYRIX Software AG
+ Copyright (C) 2000-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 "WOHTMLDynamicElement.h"
#include "WOElement+private.h"
return self;
}
-#if !LIB_FOUNDATION_BOEHM_GC
- (void)dealloc {
RELEASE(self->level);
RELEASE(self->isOrdered);
RELEASE(self->action);
[super dealloc];
}
-#endif
-// OWResponder
+/* processing requests */
- (void)takeValuesFromRequest:(WORequest *)_req inContext:(WOContext *)_ctx {
// not a container ..
}
-- (id)invokeActionForRequest:(WORequest *)_request inContext:(WOContext *)_ctx {
+- (id)invokeActionForRequest:(WORequest *)_rq inContext:(WOContext *)_ctx {
WOComponent *sComponent = [_ctx component];
id idxId = nil;
id object = nil;
return [self executeAction:self->action inContext:_ctx];
}
+/* generating response */
+
- (void)appendList:(NSArray *)_list atLevel:(unsigned int)_level
toResponse:(WOResponse *)_response inContext:(WOContext *)_ctx
{
}
- (void)appendToResponse:(WOResponse *)_response inContext:(WOContext *)_ctx {
- NSArray *top = [self->list valueInComponent:[_ctx component]];
-
+ NSArray *top;
+
+ top = [self->list valueInComponent:[_ctx component]];
if ([top count] > 0) {
[self appendList:top
atLevel:0
/* description */
- (NSString *)associationDescription {
- NSMutableString *str = [[NSMutableString alloc] init];
+ NSMutableString *str;
+ str = [NSMutableString stringWithCapacity:64];
if (self->action) [str appendFormat:@" action=%@", self->action];
if (self->list) [str appendFormat:@" list=%@", self->list];
if (self->sublist) [str appendFormat:@" sublist=%@", self->sublist];
if (self->value) [str appendFormat:@" value=%@", self->value];
if (self->isOrdered) [str appendFormat:@" isOrdered=%@", self->isOrdered];
if (self->level) [str appendFormat:@" level=%@", self->level];
-
- return AUTORELEASE(str);
+ return str;
}
@end /* WONestedList */