mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-21 02:41:04 +00:00
2000-03-08 Mirko Viviani <mirko.viviani@rccr.cremona.it>
Added patches by Karl Kraft: * GSWGenericContainer.m/h: implemented * GSWConstants.m: changed dateFormat__Key to @"dateformat" and numberFormat__Key to @"numberformat" git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@6221 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8e75e45fe3
commit
1a48af9776
4 changed files with 39 additions and 8 deletions
|
@ -1,3 +1,10 @@
|
|||
2000-03-08 Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
|
||||
Added patches by Karl Kraft:
|
||||
* GSWGenericContainer.m/h: implemented
|
||||
* GSWConstants.m: changed dateFormat__Key to @"dateformat"
|
||||
and numberFormat__Key to @"numberformat"
|
||||
|
||||
2000-02-13 Manuel Guesdon <mguesdon@sbuilders.com>
|
||||
|
||||
* GSWStatisticsStore.m: added comment
|
||||
|
|
|
@ -308,8 +308,8 @@ id value__Key = @"value";
|
|||
id action__Key = @"action";
|
||||
id name__Key = @"name";
|
||||
id disabled__Key = @"disabled";
|
||||
id dateFormat__Key = @"dateFormat";
|
||||
id numberFormat__Key = @"numberFormat";
|
||||
id dateFormat__Key = @"dateformat";
|
||||
id numberFormat__Key = @"numberformat";
|
||||
id href__Key = @"href";
|
||||
id queryDictionary__Key = @"queryDictionary";
|
||||
id multipleSubmit__Key = @"multipleSubmit";
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
@interface GSWGenericContainer: GSWDynamicElement
|
||||
{
|
||||
GSWAssociation* children;
|
||||
NSDictionary *associations;
|
||||
GSWElement* element;
|
||||
};
|
||||
|
||||
-(id)initWithName:(NSString*)name_
|
||||
|
|
|
@ -32,21 +32,25 @@ static char rcsId[] = "$Id$";
|
|||
associations:(NSDictionary*)associations_
|
||||
template:(GSWElement*)templateElement_
|
||||
{
|
||||
LOGObjectFnNotImplemented(); //TODOFN
|
||||
return nil;
|
||||
self = [super init];
|
||||
associations=[associations_ retain];
|
||||
element=[templateElement_ retain];
|
||||
return self;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
-(void)dealloc
|
||||
{
|
||||
LOGObjectFnNotImplemented(); //TODOFN
|
||||
[associations release];
|
||||
[element release];
|
||||
[super dealloc];
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
-(NSString*)description
|
||||
{
|
||||
LOGObjectFnNotImplemented(); //TODOFN
|
||||
return nil;
|
||||
//TODOFN
|
||||
return [super description];
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
@ -54,7 +58,25 @@ static char rcsId[] = "$Id$";
|
|||
-(void)appendToResponse:(GSWResponse*)response_
|
||||
inContext:(GSWContext*)context_
|
||||
{
|
||||
LOGObjectFnNotImplemented(); //TODOFN
|
||||
id component = [context_ page];
|
||||
// id pageElement = [context_ pageElement];
|
||||
id tag = [[associations objectForKey:@"elementName"] valueInComponent:component];
|
||||
//NSLog(@"elmentName/tag\n%@/%@\n",[associations objectForKey:@"elementName"],tag);
|
||||
[response_ appendContentString:[NSString stringWithFormat:@"<%@",tag]];
|
||||
{
|
||||
id theList = [associations allKeys];
|
||||
int x;
|
||||
x= [theList count];
|
||||
while (x--) {
|
||||
id theKey = [theList objectAtIndex:x];
|
||||
id theValue = [[associations objectForKey:theKey] valueInComponent:component];
|
||||
if ([theKey isEqualToString:@"elementName"]) continue;
|
||||
[response_ appendContentString:[NSString stringWithFormat:@" %@=\"%@\"",theKey,theValue]];
|
||||
}
|
||||
}
|
||||
[response_ appendContentString:@">"];
|
||||
[element appendToResponse:response_ inContext:context_];
|
||||
[response_ appendContentString:[NSString stringWithFormat:@"</%@>",tag]];
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue