mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-06-02 01:50:59 +00:00
o added _otherPathQueryAssociations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18170 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5269ab1189
commit
4f778a8865
4 changed files with 38 additions and 7 deletions
|
@ -44,13 +44,12 @@
|
||||||
//GSWeb Additions {
|
//GSWeb Additions {
|
||||||
GSWAssociation* _disabled;
|
GSWAssociation* _disabled;
|
||||||
GSWAssociation* _enabled;
|
GSWAssociation* _enabled;
|
||||||
|
NSDictionary* _otherPathQueryAssociations;
|
||||||
// }
|
// }
|
||||||
NSDictionary* _otherQueryAssociations;
|
NSDictionary* _otherQueryAssociations;
|
||||||
};
|
};
|
||||||
|
|
||||||
-(id)description;
|
|
||||||
-(id)elementName;
|
-(id)elementName;
|
||||||
-(void)dealloc;
|
|
||||||
|
|
||||||
-(id)initWithName:(NSString*)name
|
-(id)initWithName:(NSString*)name
|
||||||
associations:(NSDictionary*)associations
|
associations:(NSDictionary*)associations
|
||||||
|
|
|
@ -113,9 +113,18 @@ RCS_ID("$Id$")
|
||||||
removePrefix:YES]));
|
removePrefix:YES]));
|
||||||
if ([_otherQueryAssociations count]==0)
|
if ([_otherQueryAssociations count]==0)
|
||||||
DESTROY(_otherQueryAssociations);
|
DESTROY(_otherQueryAssociations);
|
||||||
|
|
||||||
|
if (!WOStrictFlag)
|
||||||
|
{
|
||||||
|
ASSIGN(_otherPathQueryAssociations,([tmpAssociations extractObjectsForKeysWithPrefix:@"!"
|
||||||
|
removePrefix:YES]));
|
||||||
|
if ([_otherPathQueryAssociations count]==0)
|
||||||
|
DESTROY(_otherPathQueryAssociations);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
NSDebugMLLog(@"gswdync",@"_otherQueryAssociations=%@",_otherQueryAssociations);
|
NSDebugMLLog(@"gswdync",@"_otherQueryAssociations=%@",_otherQueryAssociations);
|
||||||
|
NSDebugMLLog(@"gswdync",@"_otherPathQueryAssociations=%@",_otherPathQueryAssociations);
|
||||||
|
|
||||||
if ((self=[super initWithName:aName
|
if ((self=[super initWithName:aName
|
||||||
attributeAssociations:tmpAssociations
|
attributeAssociations:tmpAssociations
|
||||||
|
@ -137,6 +146,7 @@ RCS_ID("$Id$")
|
||||||
DESTROY(_disabled);
|
DESTROY(_disabled);
|
||||||
DESTROY(_enabled);
|
DESTROY(_enabled);
|
||||||
DESTROY(_otherQueryAssociations);
|
DESTROY(_otherQueryAssociations);
|
||||||
|
DESTROY(_otherPathQueryAssociations);
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -228,6 +238,7 @@ RCS_ID("$Id$")
|
||||||
LOGObjectFnStart();
|
LOGObjectFnStart();
|
||||||
actionString=[self computeActionStringWithActionClassAssociation:_actionClass
|
actionString=[self computeActionStringWithActionClassAssociation:_actionClass
|
||||||
directActionNameAssociation:_directActionName
|
directActionNameAssociation:_directActionName
|
||||||
|
otherPathQueryAssociations:_otherPathQueryAssociations
|
||||||
inContext:context];
|
inContext:context];
|
||||||
LOGObjectFnStop();
|
LOGObjectFnStop();
|
||||||
return actionString;
|
return actionString;
|
||||||
|
|
|
@ -61,6 +61,7 @@
|
||||||
GSWAssociation* _data;
|
GSWAssociation* _data;
|
||||||
GSWAssociation* _mimeType;
|
GSWAssociation* _mimeType;
|
||||||
GSWAssociation* _key;
|
GSWAssociation* _key;
|
||||||
|
NSDictionary* _otherPathQueryAssociations;
|
||||||
// }
|
// }
|
||||||
GSWElement* _children;
|
GSWElement* _children;
|
||||||
};
|
};
|
||||||
|
@ -68,8 +69,6 @@
|
||||||
-(id)initWithName:(NSString*)name
|
-(id)initWithName:(NSString*)name
|
||||||
associations:(NSDictionary*)associations
|
associations:(NSDictionary*)associations
|
||||||
template:(GSWElement*)templateElement;
|
template:(GSWElement*)templateElement;
|
||||||
-(void)dealloc;
|
|
||||||
-(NSString*)description;
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface GSWHyperlink (GSWHyperlinkA)
|
@interface GSWHyperlink (GSWHyperlinkA)
|
||||||
|
|
|
@ -171,8 +171,17 @@ RCS_ID("$Id$")
|
||||||
removePrefix:YES]));
|
removePrefix:YES]));
|
||||||
if ([_otherQueryAssociations count]==0)
|
if ([_otherQueryAssociations count]==0)
|
||||||
DESTROY(_otherQueryAssociations);
|
DESTROY(_otherQueryAssociations);
|
||||||
|
|
||||||
|
if (!WOStrictFlag)
|
||||||
|
{
|
||||||
|
ASSIGN(_otherPathQueryAssociations,([tmpOtherAssociations extractObjectsForKeysWithPrefix:@"!"
|
||||||
|
removePrefix:YES]));
|
||||||
|
if ([_otherPathQueryAssociations count]==0)
|
||||||
|
DESTROY(_otherPathQueryAssociations);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
NSDebugMLLog(@"gswdync",@"_otherQueryAssociations=%@",_otherQueryAssociations);
|
NSDebugMLLog(@"gswdync",@"_otherQueryAssociations=%@",_otherQueryAssociations);
|
||||||
|
NSDebugMLLog(@"gswdync",@"_otherPathQueryAssociations=%@",_otherPathQueryAssociations);
|
||||||
|
|
||||||
ASSIGN(_otherAssociations,tmpOtherAssociations);
|
ASSIGN(_otherAssociations,tmpOtherAssociations);
|
||||||
NSDebugMLLog(@"gswdync",@"_otherAssociations=%@",_otherAssociations);
|
NSDebugMLLog(@"gswdync",@"_otherAssociations=%@",_otherAssociations);
|
||||||
|
@ -228,6 +237,7 @@ RCS_ID("$Id$")
|
||||||
DESTROY(_pageSetVarAssociations);//GNUstepWeb only
|
DESTROY(_pageSetVarAssociations);//GNUstepWeb only
|
||||||
DESTROY(_pageSetVarAssociationsDynamic);
|
DESTROY(_pageSetVarAssociationsDynamic);
|
||||||
DESTROY(_otherQueryAssociations);
|
DESTROY(_otherQueryAssociations);
|
||||||
|
DESTROY(_otherPathQueryAssociations);
|
||||||
DESTROY(_otherAssociations);
|
DESTROY(_otherAssociations);
|
||||||
DESTROY(_filename);
|
DESTROY(_filename);
|
||||||
DESTROY(_framework);
|
DESTROY(_framework);
|
||||||
|
@ -525,9 +535,13 @@ RCS_ID("$Id$")
|
||||||
{
|
{
|
||||||
NSString* actionString=nil;
|
NSString* actionString=nil;
|
||||||
LOGObjectFnStart();
|
LOGObjectFnStart();
|
||||||
|
NSDebugMLLog(@"gswdync",@"_actionClass=%@",_actionClass);
|
||||||
|
NSDebugMLLog(@"gswdync",@"_directActionName=%@",_directActionName);
|
||||||
actionString=[(GSWHTMLDynamicElement*)self computeActionStringWithActionClassAssociation:_actionClass
|
actionString=[(GSWHTMLDynamicElement*)self computeActionStringWithActionClassAssociation:_actionClass
|
||||||
directActionNameAssociation:_directActionName
|
directActionNameAssociation:_directActionName
|
||||||
|
otherPathQueryAssociations:_otherPathQueryAssociations
|
||||||
inContext:context];
|
inContext:context];
|
||||||
|
NSDebugMLLog(@"gswdync",@"actionString=%@",actionString);
|
||||||
LOGObjectFnStop();
|
LOGObjectFnStop();
|
||||||
return actionString;
|
return actionString;
|
||||||
};
|
};
|
||||||
|
@ -536,13 +550,13 @@ RCS_ID("$Id$")
|
||||||
-(void)_appendQueryStringToResponse:(GSWResponse*)response
|
-(void)_appendQueryStringToResponse:(GSWResponse*)response
|
||||||
inContext:(GSWContext*)context
|
inContext:(GSWContext*)context
|
||||||
{
|
{
|
||||||
//OK
|
|
||||||
NSDictionary* queryDictionary=nil;
|
NSDictionary* queryDictionary=nil;
|
||||||
LOGObjectFnStart();
|
LOGObjectFnStart();
|
||||||
queryDictionary=[self computeQueryDictionaryInContext:context];
|
queryDictionary=[self computeQueryDictionaryInContext:context];
|
||||||
|
NSDebugMLLog(@"gswdync",@"queryDictionary=%@",queryDictionary);
|
||||||
|
|
||||||
//TODOV
|
//TODOV
|
||||||
if (queryDictionary && [queryDictionary count]>0)
|
if ([queryDictionary count]>0)
|
||||||
{
|
{
|
||||||
NSEnumerator* _enumerator = [queryDictionary keyEnumerator];
|
NSEnumerator* _enumerator = [queryDictionary keyEnumerator];
|
||||||
id aKey=nil;
|
id aKey=nil;
|
||||||
|
@ -551,13 +565,16 @@ RCS_ID("$Id$")
|
||||||
[response appendContentCharacter:'?'];
|
[response appendContentCharacter:'?'];
|
||||||
while ((aKey = [_enumerator nextObject]))
|
while ((aKey = [_enumerator nextObject]))
|
||||||
{
|
{
|
||||||
|
NSDebugMLLog(@"gswdync",@"aKey=%@",aKey);
|
||||||
if (first)
|
if (first)
|
||||||
first=NO;
|
first=NO;
|
||||||
else
|
else
|
||||||
[response appendContentCharacter:'&'];
|
[response appendContentCharacter:'&'];
|
||||||
[response appendContentHTMLString:aKey];
|
[response appendContentHTMLString:aKey];
|
||||||
value=[queryDictionary objectForKey:aKey];
|
value=[queryDictionary objectForKey:aKey];
|
||||||
|
NSDebugMLLog(@"gswdync",@"value=%@",value);
|
||||||
value=[value description];
|
value=[value description];
|
||||||
|
NSDebugMLLog(@"gswdync",@"value=%@",value);
|
||||||
if ([value length]>0)
|
if ([value length]>0)
|
||||||
{
|
{
|
||||||
[response appendContentCharacter:'='];
|
[response appendContentCharacter:'='];
|
||||||
|
@ -573,11 +590,16 @@ RCS_ID("$Id$")
|
||||||
{
|
{
|
||||||
NSDictionary* queryDictionary=nil;
|
NSDictionary* queryDictionary=nil;
|
||||||
LOGObjectFnStart();
|
LOGObjectFnStart();
|
||||||
|
NSDebugMLLog(@"gswdync",@"_actionClass=%@",_actionClass);
|
||||||
|
NSDebugMLLog(@"gswdync",@"_directActionName=%@",_directActionName);
|
||||||
|
NSDebugMLLog(@"gswdync",@"_queryDictionary=%@",_queryDictionary);
|
||||||
|
NSDebugMLLog(@"gswdync",@"_otherQueryAssociations=%@",_otherQueryAssociations);
|
||||||
queryDictionary=[(GSWHTMLDynamicElement*)self computeQueryDictionaryWithActionClassAssociation:_actionClass
|
queryDictionary=[(GSWHTMLDynamicElement*)self computeQueryDictionaryWithActionClassAssociation:_actionClass
|
||||||
directActionNameAssociation:_directActionName
|
directActionNameAssociation:_directActionName
|
||||||
queryDictionaryAssociation:_queryDictionary
|
queryDictionaryAssociation:_queryDictionary
|
||||||
otherQueryAssociations:_otherQueryAssociations
|
otherQueryAssociations:_otherQueryAssociations
|
||||||
inContext:context];
|
inContext:context];
|
||||||
|
NSDebugMLLog(@"gswdync",@"queryDictionary=%@",queryDictionary);
|
||||||
LOGObjectFnStop();
|
LOGObjectFnStop();
|
||||||
return queryDictionary;
|
return queryDictionary;
|
||||||
};
|
};
|
||||||
|
@ -704,7 +726,7 @@ RCS_ID("$Id$")
|
||||||
}
|
}
|
||||||
else if (_href)
|
else if (_href)
|
||||||
{
|
{
|
||||||
LOGSeriousError(@"We shouldn't come here (href=%@)",href);
|
LOGSeriousError(@"We shouldn't come here (_href=%@)",_href);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue