From a8e5987654d87099596d451e7c7dcc64a683d051 Mon Sep 17 00:00:00 2001 From: Manuel Guesdon Date: Mon, 24 Nov 2003 12:05:48 +0000 Subject: [PATCH] o added _otherPathQueryAssociations git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18178 72102866-910b-0410-8b05-ffd578937521 --- GSWeb.framework/GSWHTMLURLValuedElement.h | 3 +-- GSWeb.framework/GSWHTMLURLValuedElement.m | 12 +++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/GSWeb.framework/GSWHTMLURLValuedElement.h b/GSWeb.framework/GSWHTMLURLValuedElement.h index b811ba3..f5a49ae 100644 --- a/GSWeb.framework/GSWHTMLURLValuedElement.h +++ b/GSWeb.framework/GSWHTMLURLValuedElement.h @@ -43,6 +43,7 @@ GSWAssociation* _pageSetVarAssociationsDynamic; GSWAssociation* _cidStore; GSWAssociation* _cidKey; + NSDictionary* _otherPathQueryAssociations; // } GSWAssociation* _filename; GSWAssociation* _framework; @@ -58,11 +59,9 @@ -(id)initWithName:(NSString*)aName associations:(NSDictionary*)associations contentElements:(NSArray*)elements; --(void)dealloc; -(NSString*)valueAttributeName; -(NSString*)urlAttributeName; --(NSString*)description; @end @interface GSWHTMLURLValuedElement (GSWHTMLURLValuedElementA) diff --git a/GSWeb.framework/GSWHTMLURLValuedElement.m b/GSWeb.framework/GSWHTMLURLValuedElement.m index 55ecb80..611d757 100644 --- a/GSWeb.framework/GSWHTMLURLValuedElement.m +++ b/GSWeb.framework/GSWHTMLURLValuedElement.m @@ -139,6 +139,14 @@ RCS_ID("$Id$") removePrefix:YES])); if ([_otherQueryAssociations count]==0) DESTROY(_otherQueryAssociations); + + if (!WOStrictFlag) + { + ASSIGN(_otherPathQueryAssociations,([associations extractObjectsForKeysWithPrefix:@"!" + removePrefix:YES])); + if ([_otherPathQueryAssociations count]==0) + DESTROY(_otherPathQueryAssociations); + }; }; if ((self=[super initWithName:[self elementName]//NEW @@ -167,6 +175,7 @@ RCS_ID("$Id$") DESTROY(_directActionName); DESTROY(_queryDictionary); DESTROY(_otherQueryAssociations); + DESTROY(_otherPathQueryAssociations); DESTROY(_cidStore);//GSWeb only DESTROY(_cidKey);//GSWeb only [super dealloc]; @@ -510,6 +519,7 @@ NS_DURING LOGObjectFnStart(); actionString=[self computeActionStringWithActionClassAssociation:_actionClass directActionNameAssociation:_directActionName + otherPathQueryAssociations:_otherPathQueryAssociations inContext:aContext]; LOGObjectFnStop(); return actionString; @@ -550,7 +560,7 @@ NS_DURING -(NSString*)addCIDElement:(NSDictionary*)cidElement forKey:(NSString*)cidKeyValue - forCIDStore:(GSWAssociation*)cidStore + forCIDStore:(GSWAssociation*)cidStore inContext:(GSWContext*)aContext { NSString* newURL=nil;