git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19320 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mguesdon 2004-05-14 12:11:10 +00:00
parent ca51ea1e22
commit 48c2cf1681

View file

@ -1,6 +1,6 @@
/** GSWMetaRefresh.m - <title>GSWeb: Class GSWMetaRefresh</title>
Copyright (C) 1999-2003 Free Software Foundation, Inc.
Copyright (C) 1999-2004 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Apr 1999
@ -38,23 +38,38 @@ RCS_ID("$Id$")
//===================================================================================
@implementation GSWMetaRefresh
//-----------------------------------------------------------------------------------
-(BOOL)synchronizesVariablesWithBindings
{
return NO;
};
//-----------------------------------------------------------------------------------
-(NSString*)contentString
{
NSNumber* seconds = [self valueForBinding:@"seconds"];
NSString* contentString = [NSString stringWithFormat:@"%@;url=%@",
NSNumber* seconds = nil;
NSString* contentString = nil;
LOGObjectFnStart();
seconds = [self valueForBinding:@"seconds"];
contentString = [NSString stringWithFormat:@"%@;url=%@",
[seconds description],
[[self context]componentActionURL]];
LOGObjectFnStop();
return contentString;
};
//-----------------------------------------------------------------------------------
-(GSWComponent*)invokeAction
{
GSWComponent* component = nil;
LOGObjectFnStart();
if ([self hasBinding:@"pageName"])
{
NSString* pageName = [self valueForBinding:@"pageName"];
@ -62,6 +77,9 @@ RCS_ID("$Id$")
}
else
component = [self valueForBinding:@"action"];
LOGObjectFnStop();
return component;
};