From 9e2d22bc632361daf90809fbafa7de819a041faf Mon Sep 17 00:00:00 2001 From: mirko Date: Sun, 3 Dec 2000 00:00:18 +0000 Subject: [PATCH] * GSWeb.framework/GSWComponentRequestHandler.m ([GSWComponentRequestHandler -lockedDispatchWithPreparedSession: inContext:elements:]): do not 'clear' cookie if not enabled. * GSWeb.framework/GSWComponent.m ([GSWComponent -performParentAction:]): implemented. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@8247 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 8 ++++++ GSWeb.framework/GSWComponent.m | 27 +++++++++++++++++--- GSWeb.framework/GSWComponentRequestHandler.m | 10 +++++--- 3 files changed, 38 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7ff0ab5..d071dcf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2000-12-03 Mirko Viviani + + * GSWeb.framework/GSWComponentRequestHandler.m + ([GSWComponentRequestHandler -lockedDispatchWithPreparedSession: + inContext:elements:]): do not 'clear' cookie if not enabled. + * GSWeb.framework/GSWComponent.m ([GSWComponent + -performParentAction:]): implemented. + 2000-11-28 Mirko Viviani * GSWeb.framework/GSWDisplayGroup.m ([GSWDisplayGroup diff --git a/GSWeb.framework/GSWComponent.m b/GSWeb.framework/GSWComponent.m index 2029edc..aadcb1d 100644 --- a/GSWeb.framework/GSWComponent.m +++ b/GSWeb.framework/GSWComponent.m @@ -1170,10 +1170,31 @@ associationsKeys:(NSArray*)_associationsKeys //-------------------------------------------------------------------- // performParentAction: --(id)performParentAction:(NSString*)attribute +- (id)performParentAction:(NSString *)attribute { - LOGObjectFnNotImplemented(); //TODOFN - return nil; + GSWAssociation *_assoc=nil; + id _ret=nil; + + LOGObjectFnStart(); + NSDebugMLLog(@"gswcomponents", @"parentBindingName_=%@", parentBindingName_); + NSDebugMLLog(@"gswcomponents", @"parent=%p", (void*)parent); + if (parent) + { + _assoc = [self _associationWithName:attribute]; + NSDebugMLLog(@"gswcomponents", @"_assoc=%@", _assoc); + + if(_assoc && [_assoc isValueConstant] == YES) + { + NSString *_value = [_assoc valueInComponent:self]; + + if(_value) + _ret = [parent performSelector:NSSelectorFromString(_value)]; + } + } + + LOGObjectFnStop(); + + return _ret; }; //-------------------------------------------------------------------- diff --git a/GSWeb.framework/GSWComponentRequestHandler.m b/GSWeb.framework/GSWComponentRequestHandler.m index 8a311cd..582929a 100644 --- a/GSWeb.framework/GSWComponentRequestHandler.m +++ b/GSWeb.framework/GSWComponentRequestHandler.m @@ -287,11 +287,13 @@ static char rcsId[] = "$Id$"; //TODO method adds a header to the HTTP response. This header sets the expiration date for an HTML page to the date and time of the creation of the page. Later, when the browser checks its cache for this page, it finds that the page is no longer valid and so refetches it by resubmitting the request URL to the WebObjects application. [_session _saveCurrentPage]; +#if 0 if (!_contextID) // ?? - { - if (![_session storesIDsInCookies])//?? - [_session clearCookieFromResponse:_response]; - }; + { + if (![_session storesIDsInCookies])//?? + [_session clearCookieFromResponse:_response]; + }; +#endif }; NSDebugMLLog(@"requests",@"_response=%@",_response); LOGObjectFnStop();