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> /** 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> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Apr 1999 Date: Apr 1999
@ -38,23 +38,38 @@ RCS_ID("$Id$")
//=================================================================================== //===================================================================================
@implementation GSWMetaRefresh @implementation GSWMetaRefresh
//-----------------------------------------------------------------------------------
-(BOOL)synchronizesVariablesWithBindings -(BOOL)synchronizesVariablesWithBindings
{ {
return NO; return NO;
}; };
//-----------------------------------------------------------------------------------
-(NSString*)contentString -(NSString*)contentString
{ {
NSNumber* seconds = [self valueForBinding:@"seconds"]; NSNumber* seconds = nil;
NSString* contentString = [NSString stringWithFormat:@"%@;url=%@", NSString* contentString = nil;
[seconds description],
[[self context]componentActionURL]]; LOGObjectFnStart();
seconds = [self valueForBinding:@"seconds"];
contentString = [NSString stringWithFormat:@"%@;url=%@",
[seconds description],
[[self context]componentActionURL]];
LOGObjectFnStop();
return contentString; return contentString;
}; };
//-----------------------------------------------------------------------------------
-(GSWComponent*)invokeAction -(GSWComponent*)invokeAction
{ {
GSWComponent* component = nil; GSWComponent* component = nil;
LOGObjectFnStart();
if ([self hasBinding:@"pageName"]) if ([self hasBinding:@"pageName"])
{ {
NSString* pageName = [self valueForBinding:@"pageName"]; NSString* pageName = [self valueForBinding:@"pageName"];
@ -62,6 +77,9 @@ RCS_ID("$Id$")
} }
else else
component = [self valueForBinding:@"action"]; component = [self valueForBinding:@"action"];
LOGObjectFnStop();
return component; return component;
}; };