2003-03-21 Manuel Guesdon <mguesdon@orange-concept.com>

* GSWeb.framework/GSWGNUmakefile:
		o removed NSObject+IVarAccess+PerformSel.*
	* GSWeb.framework/GSWConstants.m:
		o fix GSWHTTPHeader_Response_HeaderLineEnd: remove space at the begining
		o use RCS_ID
	* GSWeb.framework/Adaptors/common/GSWHTTPResponse.c:
		o fix status in GSWHTTPResponse_New()
	* GSWAdaptors/Apache/mod_gsweb.c:
		o fixes bad returned status
		o traces
	* GSWeb.framework/GSWTemplateParserANTLR.m:
		o removed logs
		o fixes for warnings
		o use RCS_ID
	* GSWeb.framework/GSWApplication.m:
		o use RCS_ID
		o added logs
		o new method to begin rewrite exception handling
	* GSWeb.framework/GSWRequest.m:
		o logs
		o fix in -_getFormValuesFromMultipartFormData to handle more than one value per name
		o use RCS_ID
		o -fix bad types in uriElementForKey:
	* GSWeb.framework/GSWConditional.m:
		o added asserts
		o use RCS_ID
	* GSWeb.framework/GSWHTMLStaticElement.m:
		o added asserts
		o clean warnings
		o use RCS_ID
	* GSWeb.framework/GSWComponentReference.m:
		o added asserts
		o use RCS_ID
	* GSWeb.framework/GSWActiveImage.m:
		o added asserts
	* GSWeb.framework/GSWComponentContent.m:
		o added asserts
		o use RCS_ID
	* GSWeb.framework/GSWForm.m:
		o added asserts
		o use RCS_ID
	* GSWeb.framework/GSWHTMLDynamicElement.m:
		o added asserts
		o use RCS_ID
	* GSWeb.framework/GSWHTMLURLValuedElement.m:
		o use RCS_ID
		o added asserts
	* GSWeb.framework/GSWRepetition.m:
		o added asserts
		o use RCS_ID
	* GSWeb.framework/GSWExtensions.framework/GNUmakefile:
		o added GSWPageRestorationErrorPage.gswc
	* GSWeb.framework/GSWFileUploadComponent.m:
		o use RCS_ID
	* GSWeb.framework/GSWImage.m:
		o Don't output nil height/width
		o fix: get component before using !
		o use RCS_ID
	* GSWeb.framework/GSWElementIDString.m:
		o in -initWithCoder: retain _string
		o use RCS_ID
	* GSWeb.framework/GSWElementIDString.h:
		o cleaned
	* config.h.in:
		o define RCS_ID like in GDL2
	* GSWeb.framework/GSWDirectActionRequestHandler.[hm]:
		o added +additionalRequestPathArrayFromRequest:
		o enable directAction with additional path components
		o use RCS_ID
	* GSWeb.framework/GSWDirectAction.[hm]:
		o added -additionalRequestPathArray
		o use RCS_ID
	* GSWeb.framework/GSWeb.h:
		o include GSCategories.h
	* GSWeb.framework/GSWDebug.m:
		o use RCS_ID
	* GSWeb.framework/GSWPageDefParserExt.m:
		o use RCS_ID
	* GSWeb.framework/GSWPageDefElement.m:
		o use RCS_ID
	* GSWeb.framework/GSWDeployedBundle.m:
		o use RCS_ID
	* GSWeb.framework/GSWProjectBundle.m:
		o use RCS_ID
	* GSWeb.framework/GSWStats.m:
		o use RCS_ID
	* GSWeb.framework/GSWBundle.m:
		o clean warnings
		o use RCS_ID
	* GSWeb.framework/GSWTemplateParser.m::
		o clean warnings
		o use RCS_ID
	* GSWeb.framework/GSWTemplateParserXML.m:
		o clean warnings
		o use RCS_ID
	* GSWeb.framework/GSWComponent.m:
		o clean warnings
		o use RCS_ID
	* GSWeb.framework/GSWDisplayGroup.m:
		o clean warnings
		o fix -validateValue:forKey: call
		o use RCS_ID
	* GSWeb.framework/GSWHTMLParserExt.m:
		o use RCS_ID
	* GSWeb.framework/GSWAssociation.m:
		o clean warnings
		o use RCS_ID
	* GSWeb.framework/GSWResourceManager.m:
		o clean warnings
		o use RCS_ID
	* GSWeb.framework/GSWSession.m:
		o clean warnings
		o use RCS_ID
	* GSWeb.framework/GSWMultiKeyDictionary.m:
		o use RCS_ID
	* GSWeb.framework/GSWResponse.m:
		o clean warnings
		o use RCS_ID
	* GSWeb.framework/GSWStatisticsStore.m:
		o clean warnings
	* GSWeb.framework/GSWAdaptor.m:
		o use RCS_ID
	* GSWeb.framework/GSWGeometricRegion.[hm]:
		o types change
		o use RCS_ID
	* GSWeb.framework/GSWActiveImage.m:
		o clean warnings
		o use RCS_ID
	* GSWeb.framework/GSWBody.m:
		o use RCS_ID
	* GSWeb.framework/GSWTextField.m:
		o use RCS_ID
	* GSWeb.framework/GSWSubmitButton.m:
		o clean warnings
		o use RCS_ID
	* GSWeb.framework/GSWHTMLBareString.m:
		o use RCS_ID
	* GSWeb.framework/GSWHTMLComment.m:
		o use RCS_ID
	* GSWeb.framework/GSWApplet.m:
		o use RCS_ID
	* GSWeb.framework/GSWBrowser.m:
		o use RCS_ID
	* GSWeb.framework/GSWCheckBoxList.m:
		o use RCS_ID
	* GSWeb.framework/GSWEmbeddedObject.m:
		o use RCS_ID
	* GSWeb.framework/GSWFrame.m:
		o use RCS_ID
	* GSWeb.framework/GSWGenericContainer.m:
		o use RCS_ID
	* GSWeb.framework/GSWGenericElement.m:
		o use RCS_ID
	* GSWeb.framework/GSWHyperlink.m:
		o use RCS_ID
		o clean warnings
	* GSWeb.framework/GSWImageButton.m:
		o use RCS_ID
		o clean warnings
	* GSWeb.framework/GSWJavaScript.m:
		o use RCS_ID
	* GSWeb.framework/GSWNestedList.m:
		o use RCS_ID
	* GSWeb.framework/GSWParam.m:
		o use RCS_ID
	* GSWeb.framework/GSWPasswordField.m:
		o use RCS_ID
	* GSWeb.framework/GSWPopUpButton.m:
		o use RCS_ID
	* GSWeb.framework/GSWRadioButtonList.m:
		o use RCS_ID
	* GSWeb.framework/GSWResetButton.m:
		o use RCS_ID
	* GSWeb.framework/GSWSwitchComponent.m:
		o use RCS_ID
	* GSWeb.framework/GSWVBScript.m:
		o use RCS_ID
	* GSWeb.framework/GSWString.m:
		o use RCS_ID
	* GSWeb.framework/GSWText.m:
		o use RCS_ID
	* GSWeb.framework/GSWCookie.m:
		o use RCS_ID
	* GSWeb.framework/GSWRequestHandler.m:
		o use RCS_ID
	* GSWeb.framework/GSWMailDelivery.m:
		o use RCS_ID
	* GSWeb.framework/GSWComponentRequestHandler.m:
		o use RCS_ID
		o clean warnings
	* GSWeb.framework/GSWKeyValueAssociation.m:
		o use RCS_ID
	* GSWeb.framework/GSWHTMLStaticGroup.m:
		o use RCS_ID
	* GSWeb.framework/GSWConstantValueAssociation.m:
		o use RCS_ID
	* GSWeb.framework/GSWDynamicURLString.m:
		o use RCS_ID
	* GSWeb.framework/GSWBindingNameAssociation.m:
		o use RCS_ID
	* GSWeb.framework/GSWBindingNameAssociation.[hm]
		o clean warnings
		o use RCS_ID
	* GSWeb.framework/GSWURLValuedElementData.m:
		o clean warnings
		o use RCS_ID
	* GSWeb.framework/GSWToggle.m:
		o use RCS_ID
	* GSWeb.framework/GSWFileUpload.m:
		o use RCS_ID
	* GSWeb.framework/GSWResourceURL.m:
		o use RCS_ID
	* GSWeb.framework/GSWProcFS.m:
		o use RCS_ID
	* GSWeb.framework/GSWActionURL.m:
		o use RCS_ID
	* GSWeb.framework/GSWContext.m:
		o use RCS_ID
	* GSWeb.framework/GSWDefaultAdaptorThread.m:
		o use RCS_ID
	* GSWeb.framework/GSWDynamicElement.m:
		o use RCS_ID
	* GSWeb.framework/GSWeb.m:
		o use RCS_ID
	* GSWeb.framework/GSWElement.m:
		o use RCS_ID
	* GSWeb.framework/GSWResourceRequestHandler.m:
		o use RCS_ID
	* GSWeb.framework/GSWServerSessionStore.m:
		o use RCS_ID
	* GSWeb.framework/GSWSessionStore.m:
		o use RCS_ID
	* GSWeb.framework/GSWSessionTimeOut.m:
		o use RCS_ID
	* GSWeb.framework/GSWSessionTimeOutManager.m:
		o use RCS_ID
	* GSWeb.framework/GSWTransactionRecord.m:
		o use RCS_ID
	* GSWeb.framework/GSWUtils.m:
		o use RCS_ID
	* GSWeb.framework/GSWWOCompatibility.m:
		o use RCS_ID
	* GSWeb.framework/NSString+HTML.m:
		o use RCS_ID
	* GSWeb.framework/NSString+Trimming.m:
		o use RCS_ID


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@16216 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Manuel Guesdon 2003-03-21 14:32:57 +00:00
parent 0c55b7592b
commit cf6ed0b5cb
113 changed files with 1112 additions and 494 deletions

248
ChangeLog
View file

@ -1,3 +1,251 @@
2003-03-21 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWGNUmakefile:
o removed NSObject+IVarAccess+PerformSel.*
* GSWeb.framework/GSWConstants.m:
o fix GSWHTTPHeader_Response_HeaderLineEnd: remove space at the begining
o use RCS_ID
* GSWeb.framework/Adaptors/common/GSWHTTPResponse.c:
o fix status in GSWHTTPResponse_New()
* GSWAdaptors/Apache/mod_gsweb.c:
o fixes bad returned status
o traces
* GSWeb.framework/GSWTemplateParserANTLR.m:
o removed logs
o fixes for warnings
o use RCS_ID
* GSWeb.framework/GSWApplication.m:
o use RCS_ID
o added logs
o new method to begin rewrite exception handling
* GSWeb.framework/GSWRequest.m:
o logs
o fix in -_getFormValuesFromMultipartFormData to handle more than one value per name
o use RCS_ID
o -fix bad types in uriElementForKey:
* GSWeb.framework/GSWConditional.m:
o added asserts
o use RCS_ID
* GSWeb.framework/GSWHTMLStaticElement.m:
o added asserts
o clean warnings
o use RCS_ID
* GSWeb.framework/GSWComponentReference.m:
o added asserts
o use RCS_ID
* GSWeb.framework/GSWActiveImage.m:
o added asserts
* GSWeb.framework/GSWComponentContent.m:
o added asserts
o use RCS_ID
* GSWeb.framework/GSWForm.m:
o added asserts
o use RCS_ID
* GSWeb.framework/GSWHTMLDynamicElement.m:
o added asserts
o use RCS_ID
* GSWeb.framework/GSWHTMLURLValuedElement.m:
o use RCS_ID
o added asserts
* GSWeb.framework/GSWRepetition.m:
o added asserts
o use RCS_ID
* GSWeb.framework/GSWExtensions.framework/GNUmakefile:
o added GSWPageRestorationErrorPage.gswc
* GSWeb.framework/GSWFileUploadComponent.m:
o use RCS_ID
* GSWeb.framework/GSWImage.m:
o Don't output nil height/width
o fix: get component before using !
o use RCS_ID
* GSWeb.framework/GSWElementIDString.m:
o in -initWithCoder: retain _string
o use RCS_ID
* GSWeb.framework/GSWElementIDString.h:
o cleaned
* config.h.in:
o define RCS_ID like in GDL2
* GSWeb.framework/GSWDirectActionRequestHandler.[hm]:
o added +additionalRequestPathArrayFromRequest:
o enable directAction with additional path components
o use RCS_ID
* GSWeb.framework/GSWDirectAction.[hm]:
o added -additionalRequestPathArray
o use RCS_ID
* GSWeb.framework/GSWeb.h:
o include GSCategories.h
* GSWeb.framework/GSWDebug.m:
o use RCS_ID
* GSWeb.framework/GSWPageDefParserExt.m:
o use RCS_ID
* GSWeb.framework/GSWPageDefElement.m:
o use RCS_ID
* GSWeb.framework/GSWDeployedBundle.m:
o use RCS_ID
* GSWeb.framework/GSWProjectBundle.m:
o use RCS_ID
* GSWeb.framework/GSWStats.m:
o use RCS_ID
* GSWeb.framework/GSWBundle.m:
o clean warnings
o use RCS_ID
* GSWeb.framework/GSWTemplateParser.m::
o clean warnings
o use RCS_ID
* GSWeb.framework/GSWTemplateParserXML.m:
o clean warnings
o use RCS_ID
* GSWeb.framework/GSWComponent.m:
o clean warnings
o use RCS_ID
* GSWeb.framework/GSWDisplayGroup.m:
o clean warnings
o fix -validateValue:forKey: call
o use RCS_ID
* GSWeb.framework/GSWHTMLParserExt.m:
o use RCS_ID
* GSWeb.framework/GSWAssociation.m:
o clean warnings
o use RCS_ID
* GSWeb.framework/GSWResourceManager.m:
o clean warnings
o use RCS_ID
* GSWeb.framework/GSWSession.m:
o clean warnings
o use RCS_ID
* GSWeb.framework/GSWMultiKeyDictionary.m:
o use RCS_ID
* GSWeb.framework/GSWResponse.m:
o clean warnings
o use RCS_ID
* GSWeb.framework/GSWStatisticsStore.m:
o clean warnings
* GSWeb.framework/GSWAdaptor.m:
o use RCS_ID
* GSWeb.framework/GSWGeometricRegion.[hm]:
o types change
o use RCS_ID
* GSWeb.framework/GSWActiveImage.m:
o clean warnings
o use RCS_ID
* GSWeb.framework/GSWBody.m:
o use RCS_ID
* GSWeb.framework/GSWTextField.m:
o use RCS_ID
* GSWeb.framework/GSWSubmitButton.m:
o clean warnings
o use RCS_ID
* GSWeb.framework/GSWHTMLBareString.m:
o use RCS_ID
* GSWeb.framework/GSWHTMLComment.m:
o use RCS_ID
* GSWeb.framework/GSWApplet.m:
o use RCS_ID
* GSWeb.framework/GSWBrowser.m:
o use RCS_ID
* GSWeb.framework/GSWCheckBoxList.m:
o use RCS_ID
* GSWeb.framework/GSWEmbeddedObject.m:
o use RCS_ID
* GSWeb.framework/GSWFrame.m:
o use RCS_ID
* GSWeb.framework/GSWGenericContainer.m:
o use RCS_ID
* GSWeb.framework/GSWGenericElement.m:
o use RCS_ID
* GSWeb.framework/GSWHyperlink.m:
o use RCS_ID
o clean warnings
* GSWeb.framework/GSWImageButton.m:
o use RCS_ID
o clean warnings
* GSWeb.framework/GSWJavaScript.m:
o use RCS_ID
* GSWeb.framework/GSWNestedList.m:
o use RCS_ID
* GSWeb.framework/GSWParam.m:
o use RCS_ID
* GSWeb.framework/GSWPasswordField.m:
o use RCS_ID
* GSWeb.framework/GSWPopUpButton.m:
o use RCS_ID
* GSWeb.framework/GSWRadioButtonList.m:
o use RCS_ID
* GSWeb.framework/GSWResetButton.m:
o use RCS_ID
* GSWeb.framework/GSWSwitchComponent.m:
o use RCS_ID
* GSWeb.framework/GSWVBScript.m:
o use RCS_ID
* GSWeb.framework/GSWString.m:
o use RCS_ID
* GSWeb.framework/GSWText.m:
o use RCS_ID
* GSWeb.framework/GSWCookie.m:
o use RCS_ID
* GSWeb.framework/GSWRequestHandler.m:
o use RCS_ID
* GSWeb.framework/GSWMailDelivery.m:
o use RCS_ID
* GSWeb.framework/GSWComponentRequestHandler.m:
o use RCS_ID
o clean warnings
* GSWeb.framework/GSWKeyValueAssociation.m:
o use RCS_ID
* GSWeb.framework/GSWHTMLStaticGroup.m:
o use RCS_ID
* GSWeb.framework/GSWConstantValueAssociation.m:
o use RCS_ID
* GSWeb.framework/GSWDynamicURLString.m:
o use RCS_ID
* GSWeb.framework/GSWBindingNameAssociation.m:
o use RCS_ID
* GSWeb.framework/GSWBindingNameAssociation.[hm]
o clean warnings
o use RCS_ID
* GSWeb.framework/GSWURLValuedElementData.m:
o clean warnings
o use RCS_ID
* GSWeb.framework/GSWToggle.m:
o use RCS_ID
* GSWeb.framework/GSWFileUpload.m:
o use RCS_ID
* GSWeb.framework/GSWResourceURL.m:
o use RCS_ID
* GSWeb.framework/GSWProcFS.m:
o use RCS_ID
* GSWeb.framework/GSWActionURL.m:
o use RCS_ID
* GSWeb.framework/GSWContext.m:
o use RCS_ID
* GSWeb.framework/GSWDefaultAdaptorThread.m:
o use RCS_ID
* GSWeb.framework/GSWDynamicElement.m:
o use RCS_ID
* GSWeb.framework/GSWeb.m:
o use RCS_ID
* GSWeb.framework/GSWElement.m:
o use RCS_ID
* GSWeb.framework/GSWResourceRequestHandler.m:
o use RCS_ID
* GSWeb.framework/GSWServerSessionStore.m:
o use RCS_ID
* GSWeb.framework/GSWSessionStore.m:
o use RCS_ID
* GSWeb.framework/GSWSessionTimeOut.m:
o use RCS_ID
* GSWeb.framework/GSWSessionTimeOutManager.m:
o use RCS_ID
* GSWeb.framework/GSWTransactionRecord.m:
o use RCS_ID
* GSWeb.framework/GSWUtils.m:
o use RCS_ID
* GSWeb.framework/GSWWOCompatibility.m:
o use RCS_ID
* GSWeb.framework/NSString+HTML.m:
o use RCS_ID
* GSWeb.framework/NSString+Trimming.m:
o use RCS_ID
2003-03-04 David Ayers <d.ayers@inode.at> 2003-03-04 David Ayers <d.ayers@inode.at>
* GSWeb/NSString+HTML.m ([NSString -decodeURL]): Updated function * GSWeb/NSString+HTML.m ([NSString -decodeURL]): Updated function

View file

@ -391,20 +391,32 @@ copyHeaders(request_rec *p_pRequestRec,
}; };
//-------------------------------------------------------------------- //--------------------------------------------------------------------
// callback finction to copy an header into p_pRequest // callback fonction to copy an header into p_pRequest
static void static void
getHeader(GSWDictElem *p_pElem, getHeader(GSWDictElem *p_pElem,
void *p_pRequestRec) void *p_pRequestRec)
{ {
request_rec *pRequestRec = (request_rec *)p_pRequestRec; request_rec *pRequestRec = (request_rec *)p_pRequestRec;
server_rec *pServerRec = pRequestRec->server;
#ifdef DEBUG
GSWLog(GSW_DEBUG,pServerRec,"Start getHeader key=%s value=%s headers_out=%p",
p_pElem->pszKey,(char *)p_pElem->pValue,pRequestRec->headers_out);
#endif
if (!pRequestRec->content_type && if (!pRequestRec->content_type &&
strcasecmp(p_pElem->pszKey,g_szHeader_ContentType)==0) strcasecmp(p_pElem->pszKey,g_szHeader_ContentType)==0)
{
pRequestRec->content_type = (char *)ap_pstrdup(pRequestRec->pool, pRequestRec->content_type = (char *)ap_pstrdup(pRequestRec->pool,
(char *)p_pElem->pValue); (char *)p_pElem->pValue);//TODOVERIFY: strdup or not ?
#ifdef APACHE2
ap_set_content_type(pRequestRec, (char *)p_pElem->pValue);
#endif
}
else else
ap_table_add(pRequestRec->headers_out,p_pElem->pszKey, ap_table_add(pRequestRec->headers_out,p_pElem->pszKey,
(char *)p_pElem->pValue); (char *)p_pElem->pValue);
#ifdef DEBUG
GSWLog(GSW_DEBUG,pServerRec,"Stop getHeader");
#endif
}; };
//-------------------------------------------------------------------- //--------------------------------------------------------------------
@ -414,22 +426,28 @@ static void
sendResponse(request_rec *p_pRequestRec, sendResponse(request_rec *p_pRequestRec,
GSWHTTPResponse *p_pHTTPResponse) GSWHTTPResponse *p_pHTTPResponse)
{ {
char szStatusBuffer[512]="";
server_rec *pServerRec = p_pRequestRec->server; server_rec *pServerRec = p_pRequestRec->server;
GSWLog(GSW_DEBUG,pServerRec,"Start sendResponse"); GSWLog(GSW_DEBUG,pServerRec,"Start sendResponse");
// Process Headers // Process Headers
GSWDict_PerformForAllElem(p_pHTTPResponse->pHeaders,getHeader,p_pRequestRec); GSWDict_PerformForAllElem(p_pHTTPResponse->pHeaders,getHeader,p_pRequestRec);
ap_snprintf(szStatusBuffer,sizeof(szStatusBuffer),"%u %s", GSWLog(GSW_DEBUG,pServerRec,"status message=[%s]",p_pHTTPResponse->pszStatusMessage);
p_pRequestRec->status_line = apr_psprintf(p_pRequestRec->pool,"%u %s",
p_pHTTPResponse->uStatus, p_pHTTPResponse->uStatus,
p_pHTTPResponse->pszStatusMessage); p_pHTTPResponse->pszStatusMessage);
p_pRequestRec->status_line = szStatusBuffer;
p_pRequestRec->status = p_pHTTPResponse->uStatus; p_pRequestRec->status = p_pHTTPResponse->uStatus;
GSWLog(GSW_DEBUG,pServerRec,"p_pRequestRec->status_line=[%s]",p_pRequestRec->status_line);
// Set content type if none // Set content type if none
if (!p_pRequestRec->content_type) if (!p_pRequestRec->content_type)
{
p_pRequestRec->content_type = g_szContentType_TextHtml; p_pRequestRec->content_type = g_szContentType_TextHtml;
#ifdef APACHE2
ap_set_content_type(p_pRequestRec, g_szContentType_TextHtml);
#endif
};
GSWLog(GSW_DEBUG,pServerRec,"p_pRequestRec->content_type=%s",p_pRequestRec->content_type);
// Set content length // Set content length
ap_set_content_length(p_pRequestRec, (uintmax_t)p_pHTTPResponse->uContentLength); ap_set_content_length(p_pRequestRec, (uintmax_t)p_pHTTPResponse->uContentLength);
@ -437,7 +455,9 @@ sendResponse(request_rec *p_pRequestRec,
// Now Send response... // Now Send response...
// send Headers // send Headers
#ifndef APACHE2 // No more needed in Apache2 (?)
ap_send_http_header(p_pRequestRec); ap_send_http_header(p_pRequestRec);
#endif
// If not headers only // If not headers only
if (!p_pRequestRec->header_only) if (!p_pRequestRec->header_only)

View file

@ -86,7 +86,7 @@ GSWHTTPResponse_New(CONST char *p_pszStatus,
{ {
pszSpace=strchr(pszSpace,' '); pszSpace=strchr(pszSpace,' ');
if (pszSpace) if (pszSpace)
pHTTPResponse->pszStatusMessage=strdup(pszSpace); pHTTPResponse->pszStatusMessage=strdup(pszSpace+1);
}; };
}; };
}; };

View file

@ -63,6 +63,7 @@ GSWExtensions_COMPONENTS = \
GSWSessionCreationErrorPage.gswc \ GSWSessionCreationErrorPage.gswc \
GSWSessionRestorationErrorPage.gswc \ GSWSessionRestorationErrorPage.gswc \
GSWCollapsibleComponentContent.gswc \ GSWCollapsibleComponentContent.gswc \
GSWPageRestorationErrorPage.gswc \
GSWStatsPage.gswc \ GSWStatsPage.gswc \
GSWDictionaryRepetition.gswc \ GSWDictionaryRepetition.gswc \
GSWTable.gswc \ GSWTable.gswc \

View file

@ -1,5 +1,6 @@
/* GSWFileUploadComponent.h - GSWeb: Class GSWFileUploadComponent /* GSWFileUploadComponent.h - GSWeb: Class GSWFileUploadComponent
Copyright (C) 2002 Free Software Foundation, Inc.
Copyright (C) 2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: May 2002 Date: May 2002
@ -28,11 +29,11 @@
{ {
NSMutableDictionary* _tmpFileInfo; NSMutableDictionary* _tmpFileInfo;
}; };
-(id)init;
-(void)dealloc; -(NSMutableDictionary*)fileInfo;
-(void)awake; -(BOOL)isViewEnabled;
-(void)sleep; -(BOOL)isDeleteEnabled;
-(BOOL)synchronizesVariablesWithBindings;
@end @end

View file

@ -1,5 +1,6 @@
/** GSWFileUploadComponent.m - <title>GSWeb: Class GSWFileUploadComponent</title> /** GSWFileUploadComponent.m - <title>GSWeb: Class GSWFileUploadComponent</title>
Copyright (C) 2002 Free Software Foundation, Inc.
Copyright (C) 2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: May 2002 Date: May 2002
@ -28,7 +29,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWExtGSWWOCompatibility.h" #include "GSWExtGSWWOCompatibility.h"
#include "GSWFileUploadComponent.h" #include "GSWFileUploadComponent.h"
@ -80,10 +83,15 @@ static char rcsId[] = "$Id$";
-(void)appendToResponse:(GSWResponse*)aResponse -(void)appendToResponse:(GSWResponse*)aResponse
inContext:(GSWContext*)aContext inContext:(GSWContext*)aContext
{ {
LOGObjectFnStart();
_tmpFileInfo=nil;
[aResponse appendDebugCommentContentString:[[self fileInfo]description]]; [aResponse appendDebugCommentContentString:[[self fileInfo]description]];
NSDebugMLog(@"fileInfo %@",_tmpFileInfo);
[super appendToResponse:aResponse [super appendToResponse:aResponse
inContext:aContext]; inContext:aContext];
_tmpFileInfo=nil; _tmpFileInfo=nil;
NSDebugMLog(@"fileInfo %@",_tmpFileInfo);
LOGObjectFnStop();
}; };
//-------------------------------------------------------------------- //--------------------------------------------------------------------
@ -91,7 +99,8 @@ static char rcsId[] = "$Id$";
inContext:(GSWContext*)aContext inContext:(GSWContext*)aContext
{ {
LOGObjectFnStart(); LOGObjectFnStart();
NSDebugMLog(@"fileInfo %@",_tmpFileInfo); _tmpFileInfo=nil;
NSDebugMLog(@"fileInfo %@",[self fileInfo]);
[super takeValuesFromRequest:aRequest [super takeValuesFromRequest:aRequest
inContext:aContext]; inContext:aContext];
NSDebugMLog(@"fileInfo.fileURL %@",[_tmpFileInfo valueForKey:@"fileURL"]); NSDebugMLog(@"fileInfo.fileURL %@",[_tmpFileInfo valueForKey:@"fileURL"]);

View file

@ -59,7 +59,7 @@ endif
ADDITIONAL_CFLAGS = ADDITIONAL_CFLAGS =
# Additional include directories the compiler should search # Additional include directories the compiler should search
ADDITIONAL_INCLUDE_DIRS = -I$(GNUSTEP_SYSTEM_ROOT)/db -I../.. -I../GSWeb.framework/derived_src ADDITIONAL_INCLUDE_DIRS = -I$(GNUSTEP_SYSTEM_ROOT)/db -I../ -I../.. -I../GSWeb.framework/derived_src
# Additional LDFLAGS to pass to the linker # Additional LDFLAGS to pass to the linker
ADDITIONAL_LDFLAGS = -lGSANTLR ADDITIONAL_LDFLAGS = -lGSANTLR

View file

@ -1,6 +1,6 @@
# GNUmakefile - GSWeb: GNUmakefile # GNUmakefile - GSWeb: GNUmakefile
# #
# Copyright (C) 1999-2002 Free Software Foundation, Inc. # Copyright (C) 1999-2003 Free Software Foundation, Inc.
# #
# Written by: Manuel Guesdon <mguesdon@orange-concept.com> # Written by: Manuel Guesdon <mguesdon@orange-concept.com>
# Date: Jan 1999 # Date: Jan 1999
@ -97,7 +97,6 @@ GSWStats.m \
NSNonBlockingFileHandle.m \ NSNonBlockingFileHandle.m \
GSWTransactionRecord.m \ GSWTransactionRecord.m \
GSWBundle.m \ GSWBundle.m \
NSObject+IVarAccess+PerformSel.m \
NSString+Trimming.m \ NSString+Trimming.m \
NSString+HTML.m \ NSString+HTML.m \
GSWTemplateParser.m \ GSWTemplateParser.m \
@ -295,7 +294,6 @@ GSWTransactionRecord.h \
GSWURLValuedElementData.h \ GSWURLValuedElementData.h \
GSWVBScript.h \ GSWVBScript.h \
NSNonBlockingFileHandle.h \ NSNonBlockingFileHandle.h \
NSObject+IVarAccess+PerformSel.h \
NSString+HTML.h \ NSString+HTML.h \
NSString+Trimming.h \ NSString+Trimming.h \
GSWConfig.h \ GSWConfig.h \

View file

@ -1,6 +1,6 @@
/** GSWActionURL.h - <title>GSWeb: Class GSWActionURL</title> /** GSWActionURL.m - <title>GSWeb: Class GSWActionURL</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Sep 1999 Date: Sep 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,5 +1,6 @@
/** GSWActiveImage.m - <title>GSWeb: Class GSWActiveImage</title> /** GSWActiveImage.m - <title>GSWeb: Class GSWActiveImage</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc.
Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -28,7 +29,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -331,6 +334,12 @@ static char rcsId[] = "$Id$";
{ {
[aContext _setActionInvoked:YES]; [aContext _setActionInvoked:YES];
element=[actionAssociation valueInComponent:component]; element=[actionAssociation valueInComponent:component];
NSAssert4(!element || [element isKindOfClass:[GSWElement class]],
@"actionAssociation=%@, component=%@ Element is a %@ not a GSWElement: %@",
actionAssociation,
component,
[element class],
element);
} }
else else
{ {
@ -343,6 +352,12 @@ static char rcsId[] = "$Id$";
{ {
[aContext _setActionInvoked:YES]; [aContext _setActionInvoked:YES];
element=[_action valueInComponent:component]; element=[_action valueInComponent:component];
NSAssert4(!element || [element isKindOfClass:[GSWElement class]],
@"_action=%@, component=%@ Element is a %@ not a GSWElement: %@",
_action,
component,
[element class],
element);
} }
else else
{ {
@ -350,15 +365,33 @@ static char rcsId[] = "$Id$";
}; };
}; };
if (!element) if (!element)
{
element=[aContext page]; element=[aContext page];
NSAssert2(!element || [element isKindOfClass:[GSWElement class]],
@"Element is a %@ not a GSWElement: %@",
[element class],
element);
};
} }
else else
{
element=[super invokeActionForRequest:request element=[super invokeActionForRequest:request
inContext:aContext]; inContext:aContext];
NSAssert2(!element || [element isKindOfClass:[GSWElement class]],
@"Element is a %@ not a GSWElement: %@",
[element class],
element);
};
} }
else else
{
element=[super invokeActionForRequest:request element=[super invokeActionForRequest:request
inContext:aContext]; inContext:aContext];
NSAssert2(!element || [element isKindOfClass:[GSWElement class]],
@"Element is a %@ not a GSWElement: %@",
[element class],
element);
};
LOGObjectFnStop(); LOGObjectFnStop();
return element; return element;
}; };
@ -368,8 +401,8 @@ static char rcsId[] = "$Id$";
inContext:(GSWContext*)aContext inContext:(GSWContext*)aContext
{ {
//OK //OK
GSWRequest* _request=[aContext request]; //GSWRequest* _request=[aContext request];
BOOL isFromClientComponent=[_request isFromClientComponent]; //Unused now BOOL isFromClientComponent=[_request isFromClientComponent];
BOOL disabledInContext=[self disabledInContext:aContext]; BOOL disabledInContext=[self disabledInContext:aContext];
BOOL isInForm=NO; BOOL isInForm=NO;
isInForm=[aContext isInForm]; //TODO isInForm=[aContext isInForm]; //TODO

View file

@ -1,11 +1,16 @@
/* GSWAdaptor.m - GSWeb: Class GSWAdaptor /** GSWAdaptor.m - <title>GSWeb: Class GSWAdaptor</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc.
Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
$Revision$
$Date$
This file is part of the GNUstep Web Library. This file is part of the GNUstep Web Library.
<license>
This library is free software; you can redistribute it and/or This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either License as published by the Free Software Foundation; either
@ -19,9 +24,12 @@
You should have received a copy of the GNU Library General Public You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ </license>
**/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWApplet.m - <title>GSWeb: Class GSWApplet</title> /** GSWApplet.m - <title>GSWeb: Class GSWApplet</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -28,7 +28,9 @@
</license> </license>
**/ **/
static const char rcsId[]="$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -61,6 +63,7 @@ NSString* globalApplicationClassName=nil;
NSMutableDictionary* localDynCreateClassNames=nil; NSMutableDictionary* localDynCreateClassNames=nil;
int GSWebNamingConv=GSWNAMES_INDEX; int GSWebNamingConv=GSWNAMES_INDEX;
BOOL WOStrictFlag=NO; BOOL WOStrictFlag=NO;
NSString* GSWPageNotFoundException=@"GSWPageNotFoundException";
#ifndef NDEBUG #ifndef NDEBUG
void GSWApplicationDebugSetChange() void GSWApplicationDebugSetChange()
@ -1259,7 +1262,7 @@ selfLockn,
}; };
if (!componentDefinition) if (!componentDefinition)
{ {
ExceptionRaise(@"GSWApplication", ExceptionRaise(GSWPageNotFoundException,
@"Unable to create component definition for %@ for languages: %@ (no componentDefinition).", @"Unable to create component definition for %@ for languages: %@ (no componentDefinition).",
aName, aName,
languages); languages);
@ -2701,6 +2704,62 @@ selfLockn,
//==================================================================== //====================================================================
@implementation GSWApplication (GSWErrorHandling) @implementation GSWApplication (GSWErrorHandling)
//Not used now. For future exception handling rewrite
-(GSWResponse*)_invokeDefaultException:(NSException*)exception
named:(NSString*)name
inContext:(GSWContext*)aContext
{
//TODO
GSWResponse* response=nil;
LOGObjectFnStart();
response=[GSWResponse responseWithMessage:@"Exception Handling failed"
inContext:aContext
forRequest:nil];
LOGObjectFnStop();
return response;
};
//Not used now. For future exception handling rewrite
-(GSWResponse*)_handleErrorWithPageNamed:(NSString*)pageName
exception:(NSException*)anException
inContext:(GSWContext*)aContext
{
GSWResponse* response=nil;
LOGObjectFnStart();
NS_DURING
{
GSWComponent* page=[self pageWithName:pageName
inContext:aContext];
if (anException)
[page takeValue:anException
forKey:@"exception"];
response=[page generateResponse];
}
NS_HANDLER
{
// My God ! Exception on exception !
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
@"In _handleException:inContext:");
LOGException(@"exception=%@",localException);
if ([[localException name]isEqualToString:GSWPageNotFoundException])
response=[self _invokeDefaultException:localException
named:pageName
inContext:aContext];
else
{
//TODO: better exception text...
NSException* exception=[NSException exceptionWithName:@"Exception"
reason:[NSString stringWithFormat:@"Cant handle exception %@",localException]
userInfo:nil];
response=[self _invokeDefaultException:exception
named:pageName
inContext:aContext];
};
}
NS_ENDHANDLER;
return response;
};
//-------------------------------------------------------------------- //--------------------------------------------------------------------
-(GSWResponse*)handleException:(NSException*)anException -(GSWResponse*)handleException:(NSException*)anException
inContext:(GSWContext*)aContext inContext:(GSWContext*)aContext
@ -2764,6 +2823,7 @@ selfLockn,
inFramework:GSWFramework_extensions[GSWebNamingConvForRound(iName)] inFramework:GSWFramework_extensions[GSWebNamingConvForRound(iName)]
languages:nil]) languages:nil])
{ {
NSDebugMLog(@"exceptionPage=%@ found",exceptionPage);
NS_DURING NS_DURING
{ {
page=[self pageWithName:GSWExceptionPageName[GSWebNamingConvForRound(iName)] page=[self pageWithName:GSWExceptionPageName[GSWebNamingConvForRound(iName)]
@ -2777,6 +2837,10 @@ selfLockn,
//TODO //TODO
} }
NS_ENDHANDLER; NS_ENDHANDLER;
}
else
{
LOGError(@"exceptionPage=%@ Not found",exceptionPage);
}; };
}; };
if (page) if (page)

View file

@ -1,6 +1,6 @@
/** GSWAssociation.m - <title>GSWeb: Class GSWAssociation</title> /** GSWAssociation.m - <title>GSWeb: Class GSWAssociation</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include <math.h> #include <math.h>
@ -37,6 +39,9 @@ static char rcsId[] = "$Id$";
#ifdef TCSDB #ifdef TCSDB
#include <TCSimpleDB/TCSimpleDB.h> #include <TCSimpleDB/TCSimpleDB.h>
#endif #endif
#ifdef GDL2
#include <EOControl/EOKeyValueCoding.h>
#endif
static NSDictionary* localMinMaxDictionary=nil; static NSDictionary* localMinMaxDictionary=nil;
static NSMutableDictionary* associationsHandlerClasses=nil; static NSMutableDictionary* associationsHandlerClasses=nil;
@ -304,7 +309,7 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
{ {
NSString* numberString=[trimmedString stringByDeletingPrefix:@"#"]; NSString* numberString=[trimmedString stringByDeletingPrefix:@"#"];
//char* cString=[numberString lossyCString];//TODO //char* cString=[numberString lossyCString];//TODO
char* cString=[numberString cString];//TODO const char* cString=[numberString cString];//TODO
char* endPtr=NULL; char* endPtr=NULL;
int value=strtol(cString,&endPtr,16); int value=strtol(cString,&endPtr,16);
NSDebugMLLog(@"associations",@"value=[%d]",value); NSDebugMLLog(@"associations",@"value=[%d]",value);
@ -341,7 +346,7 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
else else
{ {
//char* cString=[trimmedString lossyCString];//TODO //char* cString=[trimmedString lossyCString];//TODO
char* cString=[trimmedString cString];//TODO const char* cString=[trimmedString cString];//TODO
char* endPtr=NULL; char* endPtr=NULL;
int value=strtol(cString,&endPtr,10); int value=strtol(cString,&endPtr,10);
NSDebugMLLog(@"associations",@"value=[%d]",value); NSDebugMLLog(@"associations",@"value=[%d]",value);
@ -542,7 +547,6 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
int i=0; int i=0;
Class class=Nil; Class class=Nil;
int handlerCount=[associationsLogsHandlerClasses count]; int handlerCount=[associationsLogsHandlerClasses count];
NSString* debugDescription=[self debugDescription];
for(i=0;i<handlerCount;i++) for(i=0;i<handlerCount;i++)
{ {
class=[associationsLogsHandlerClasses objectAtIndex:i]; class=[associationsLogsHandlerClasses objectAtIndex:i];

View file

@ -1,6 +1,6 @@
/** GSWBindingNameAssociation.h - <title>GSWeb: Class GSWBindingNameAssociation</title> /** GSWBindingNameAssociation.h - <title>GSWeb: Class GSWBindingNameAssociation</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 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
@ -46,7 +46,7 @@
-(void)dealloc; -(void)dealloc;
-(id)copyWithZone:(NSZone*)zone; -(id)copyWithZone:(NSZone*)zone;
-(NSString*)description; -(NSString*)description;
-(BOOL)isImplementedForComponent:(NSObject*)object; -(BOOL)isImplementedForComponent:(GSWComponent*)object;
-(BOOL)isValueConstant; -(BOOL)isValueConstant;
-(BOOL)isValueSettable; -(BOOL)isValueSettable;
-(id)valueInObject:(id)object; -(id)valueInObject:(id)object;

View file

@ -1,6 +1,6 @@
/** GSWBindingNameAssociation.m - <title>GSWeb: Class GSWBindingNameAssociation</title> /** GSWBindingNameAssociation.m - <title>GSWeb: Class GSWBindingNameAssociation</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 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
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -96,7 +98,7 @@ static char rcsId[] = "$Id$";
}; };
//-------------------------------------------------------------------- //--------------------------------------------------------------------
-(BOOL)isImplementedForComponent:(NSObject*)object -(BOOL)isImplementedForComponent:(GSWComponent*)object
{ {
BOOL isImplemented=NO; BOOL isImplemented=NO;
LOGObjectFnStart(); LOGObjectFnStart();

View file

@ -1,6 +1,6 @@
/** GSWBody.m - <title>GSWeb: Class GSWBody</title> /** GSWBody.m - <title>GSWeb: Class GSWBody</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWBrowser.m - <title>GSWeb: Class GSWBrowser</title> /** GSWBrowser.m - <title>GSWeb: Class GSWBrowser</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -30,11 +30,15 @@
</license> </license>
**/ **/
static const char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#ifdef GDL2 #ifdef GDL2
#include <EOControl/EOKeyValueCoding.h>
//==================================================================== //====================================================================
@interface GSWBundleUnarchiverDelegate : NSObject @interface GSWBundleUnarchiverDelegate : NSObject
{ {
@ -268,7 +272,7 @@ objectForReference:(NSString*)keyPath
id resource=nil; id resource=nil;
NSString* path=nil; NSString* path=nil;
NSFileManager* fileManager=nil; NSFileManager* fileManager=nil;
int languagesNb=nil; int languagesNb=0;
BOOL exists=NO; BOOL exists=NO;
LOGObjectFnStart(); LOGObjectFnStart();
NSDebugMLLog(@"bundles",@"type=%@",aType); NSDebugMLLog(@"bundles",@"type=%@",aType);
@ -730,9 +734,8 @@ objectForReference:(NSString*)keyPath
stringsTable=[NSDictionary dictionaryWithContentsOfFile:absolutePath]; stringsTable=[NSDictionary dictionaryWithContentsOfFile:absolutePath];
if (!stringsTable) if (!stringsTable)
{ {
NSString* tmpString=[NSString stringWithContentsOfFile:absolutePath];
LOGSeriousError(@"Bad stringTable \n%@\n from file %@", LOGSeriousError(@"Bad stringTable \n%@\n from file %@",
tmpString, [NSString stringWithContentsOfFile:absolutePath],
absolutePath); absolutePath);
}; };
if ([[GSWApplication application] isCachingEnabled]) if ([[GSWApplication application] isCachingEnabled])
@ -790,9 +793,8 @@ objectForReference:(NSString*)keyPath
stringsTableArray=[NSArray arrayWithContentsOfFile:absolutePath]; stringsTableArray=[NSArray arrayWithContentsOfFile:absolutePath];
if (!stringsTableArray) if (!stringsTableArray)
{ {
NSString* tmpString=[NSString stringWithContentsOfFile:absolutePath];
LOGSeriousError(@"Bad stringTableArray \n%@\n from file %@", LOGSeriousError(@"Bad stringTableArray \n%@\n from file %@",
tmpString, [NSString stringWithContentsOfFile:absolutePath],
absolutePath); absolutePath);
}; };
if ([[GSWApplication application] isCachingEnabled]) if ([[GSWApplication application] isCachingEnabled])
@ -1058,7 +1060,6 @@ objectForReference:(NSString*)keyPath
NSDictionary* archive=nil; NSDictionary* archive=nil;
NSString* relativePath=nil; NSString* relativePath=nil;
NSString* absolutePath=nil; NSString* absolutePath=nil;
BOOL isCachingEnabled=NO;
LOGObjectFnStart(); LOGObjectFnStart();
NSDebugMLLog(@"bundles",@"search=%@.%@",aName,GSWArchiveSuffix[GSWebNamingConv]); NSDebugMLLog(@"bundles",@"search=%@.%@",aName,GSWArchiveSuffix[GSWebNamingConv]);
archive=[self lockedResourceNamed:aName archive=[self lockedResourceNamed:aName
@ -1135,7 +1136,6 @@ objectForReference:(NSString*)keyPath
NSDictionary* api=nil; NSDictionary* api=nil;
NSString* relativePath=nil; NSString* relativePath=nil;
NSString* absolutePath=nil; NSString* absolutePath=nil;
BOOL isCachingEnabled=NO;
LOGObjectFnStart(); LOGObjectFnStart();
api=[self lockedResourceNamed:aName api=[self lockedResourceNamed:aName
ofType:GSWAPISuffix ofType:GSWAPISuffix

View file

@ -1,6 +1,6 @@
/** GSWCheckBoxList.m - <title>GSWeb: Class GSWCheckBoxList</title> /** GSWCheckBoxList.m - <title>GSWeb: Class GSWCheckBoxList</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWClientSideScript.m - <title>GSWeb: Class GSWClientSideScript</title> /** GSWClientSideScript.m - <title>GSWeb: Class GSWClientSideScript</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: May 1999 Date: May 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -30,10 +30,14 @@
</license> </license>
**/ **/
static const char rcsId[]="$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#ifdef GDL2
#include <EOControl/EOKeyValueCoding.h>
#endif
//==================================================================== //====================================================================
@implementation GSWComponent @implementation GSWComponent
@ -266,7 +270,7 @@ static const char rcsId[]="$Id$";
//OK //OK
NSString* aTemplateName=nil; NSString* aTemplateName=nil;
LOGObjectFnStart(); LOGObjectFnStart();
aTemplateName=[NSString stringWithCString:[aClass name]]; aTemplateName=[NSString stringWithCString:class_get_class_name(aClass)];
LOGObjectFnStop(); LOGObjectFnStop();
return aTemplateName; return aTemplateName;
}; };
@ -651,7 +655,7 @@ associationsKeys:(NSArray*)associationsKeys
-(id)makeAParentPerformSelectorIfPossible:(SEL)aSelector -(id)makeAParentPerformSelectorIfPossible:(SEL)aSelector
{ {
id retValue=nil; id retValue=nil;
id obj=[self parent]; GSWComponent* obj=[self parent];
LOGObjectFnStart(); LOGObjectFnStart();
while(obj) while(obj)
{ {
@ -673,7 +677,7 @@ associationsKeys:(NSArray*)associationsKeys
withObject:(id)object withObject:(id)object
{ {
id retValue=nil; id retValue=nil;
id obj=[self parent]; GSWComponent* obj=[self parent];
LOGObjectFnStart(); LOGObjectFnStart();
while(obj) while(obj)
{ {
@ -697,7 +701,7 @@ associationsKeys:(NSArray*)associationsKeys
withObject:(id)object2 withObject:(id)object2
{ {
id retValue=nil; id retValue=nil;
id obj=[self parent]; GSWComponent* obj=[self parent];
LOGObjectFnStart(); LOGObjectFnStart();
while(obj) while(obj)
{ {
@ -720,7 +724,7 @@ associationsKeys:(NSArray*)associationsKeys
-(void)makeSubComponentsPerformSelectorIfPossible:(SEL)aSelector -(void)makeSubComponentsPerformSelectorIfPossible:(SEL)aSelector
{ {
NSEnumerator* enumerator=nil; NSEnumerator* enumerator=nil;
id component=nil; GSWComponent* component=nil;
LOGObjectFnStart(); LOGObjectFnStart();
NSDebugMLLog(@"GSWComponent",@"_subComponents=%@",_subComponents); NSDebugMLLog(@"GSWComponent",@"_subComponents=%@",_subComponents);
enumerator= [_subComponents objectEnumerator]; enumerator= [_subComponents objectEnumerator];
@ -738,7 +742,7 @@ associationsKeys:(NSArray*)associationsKeys
withObject:(id)object withObject:(id)object
{ {
NSEnumerator* enumerator=nil; NSEnumerator* enumerator=nil;
id component=nil; GSWComponent* component=nil;
LOGObjectFnStart(); LOGObjectFnStart();
NSDebugMLLog(@"GSWComponent",@"_subComponents=%@",_subComponents); NSDebugMLLog(@"GSWComponent",@"_subComponents=%@",_subComponents);
enumerator= [_subComponents objectEnumerator]; enumerator= [_subComponents objectEnumerator];
@ -759,7 +763,7 @@ associationsKeys:(NSArray*)associationsKeys
withObject:(id)object2 withObject:(id)object2
{ {
NSEnumerator* enumerator=nil; NSEnumerator* enumerator=nil;
id component=nil; GSWComponent* component=nil;
LOGObjectFnStart(); LOGObjectFnStart();
NSDebugMLLog(@"GSWComponent",@"_subComponents=%@",_subComponents); NSDebugMLLog(@"GSWComponent",@"_subComponents=%@",_subComponents);
enumerator= [_subComponents objectEnumerator]; enumerator= [_subComponents objectEnumerator];
@ -1561,18 +1565,6 @@ associationsKeys:(NSArray*)associationsKeys
//==================================================================== //====================================================================
@implementation GSWComponent (GSWComponentK) @implementation GSWComponent (GSWComponentK)
//--------------------------------------------------------------------
-(GSWResponse*)_generateResponseInContext:(GSWContext*)aContext
{
GSWResponse* response=nil;
LOGObjectFnStart();
NSAssert(aContext,@"No context");
response=[GSWApp createResponseInContext:aContext];
[self _appendPageToResponse:response
inContext:aContext];
return response;
};
//-------------------------------------------------------------------- //--------------------------------------------------------------------
-(void)_appendPageToResponse:(GSWResponse*)response -(void)_appendPageToResponse:(GSWResponse*)response
inContext:(GSWContext*)aContext inContext:(GSWContext*)aContext
@ -1660,6 +1652,18 @@ associationsKeys:(NSArray*)associationsKeys
LOGObjectFnStop(); LOGObjectFnStop();
}; };
//--------------------------------------------------------------------
-(GSWResponse*)_generateResponseInContext:(GSWContext*)aContext
{
GSWResponse* response=nil;
LOGObjectFnStart();
NSAssert(aContext,@"No context");
response=[GSWApp createResponseInContext:aContext];
[self _appendPageToResponse:response
inContext:aContext];
return response;
};
//-------------------------------------------------------------------- //--------------------------------------------------------------------
-(id)validateValue:(id*)valuePtr -(id)validateValue:(id*)valuePtr
forKey:(id)key forKey:(id)key
@ -1989,7 +1993,7 @@ associationsKeys:(NSArray*)associationsKeys
if (api) if (api)
{ {
NSArray* required=[api objectForKey:@"Required"]; NSArray* required=[api objectForKey:@"Required"];
NSArray* optional=[api objectForKey:@"Optional"]; //TODO useit NSArray* optional=[api objectForKey:@"Optional"];
int i=0; int i=0;
int count=[required count]; int count=[required count];
id aName=nil; id aName=nil;

View file

@ -1,5 +1,6 @@
/** GSWComponentContent.m - <title>GSWeb: Class GSWComponentContent</title> /** GSWComponentContent.m - <title>GSWeb: Class GSWComponentContent</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc.
Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -28,7 +29,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -90,6 +93,11 @@ static char rcsId[] = "$Id$";
[aContext _setCurrentComponent:parent]; [aContext _setCurrentComponent:parent];
element=[childTemplate invokeActionForRequest:request element=[childTemplate invokeActionForRequest:request
inContext:aContext]; inContext:aContext];
NSAssert3(!element || [element isKindOfClass:[GSWElement class]],
@"childTemplate=%@ Element is a %@ not a GSWElement: %@",
childTemplate,
[element class],
element);
[aContext _setCurrentComponent:component]; [aContext _setCurrentComponent:component];
NSDebugMLLog(@"gswdync",@"END ET=%@ defName=%@ id=%@", NSDebugMLLog(@"gswdync",@"END ET=%@ defName=%@ id=%@",
[self class],[self definitionName],[aContext elementID]); [self class],[self definitionName],[aContext elementID]);

View file

@ -1,6 +1,6 @@
/* GSWComponentReference.m - <title>GSWeb: Class GSWComponentReference</title> /* GSWComponentReference.m - <title>GSWeb: Class GSWComponentReference</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -29,7 +29,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -258,6 +260,12 @@ static char rcsId[] = "$Id$";
component=[context component]; component=[context component];
element=[component invokeActionForRequest:request element=[component invokeActionForRequest:request
inContext:context]; inContext:context];
NSAssert4(!element || [element isKindOfClass:[GSWElement class]],
@"Name= %@, from: %@, Element is a %@ not a GSWElement: %@",
_name,
component,
[element class],
element);
}; };
[self popRefComponentInContext:context]; [self popRefComponentInContext:context];
} }

View file

@ -27,7 +27,9 @@
</license> </license>
**/ **/
static const char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -349,8 +351,8 @@ static const char rcsId[] = "$Id$";
NSString* senderID=nil; NSString* senderID=nil;
NSString* contextID=nil; NSString* contextID=nil;
NSString* httpVersion=nil; NSString* httpVersion=nil;
GSWElement* page=nil; GSWComponent* page=nil;
GSWElement* responsePage=nil; GSWComponent* responsePage=nil;
BOOL isFromClientComponent=NO; BOOL isFromClientComponent=NO;
BOOL hasFormValues=NO; BOOL hasFormValues=NO;
GSWContext* responseContext=nil; GSWContext* responseContext=nil;
@ -424,7 +426,7 @@ static const char rcsId[] = "$Id$";
// Exception catching here ? // Exception catching here ?
NS_DURING NS_DURING
{ {
responsePage=[[GSWApplication application] invokeActionForRequest:request responsePage=(GSWComponent*)[[GSWApplication application] invokeActionForRequest:request
inContext:aContext]; inContext:aContext];
NSDebugMLLog(@"requests",@"After invokeAction [aContext elementID]=%@",[aContext elementID]); NSDebugMLLog(@"requests",@"After invokeAction [aContext elementID]=%@",[aContext elementID]);
NSAssert([[aContext elementID] length]==0,@"4 lockedDispatchWithPreparedPage elementID length>0"); NSAssert([[aContext elementID] length]==0,@"4 lockedDispatchWithPreparedPage elementID length>0");
@ -462,7 +464,7 @@ static const char rcsId[] = "$Id$";
responseContext=[(GSWComponent*)responsePage context];//So what ? responseContext=[(GSWComponent*)responsePage context];//So what ?
NSDebugMLLog(@"requests",@"responseContext=%@",responseContext); NSDebugMLLog(@"requests",@"responseContext=%@",responseContext);
[responseContext _setPageReplaced:NO]; [responseContext _setPageReplaced:NO];
responsePageElement=[responseContext _pageElement]; responsePageElement=(GSWComponent*)[responseContext _pageElement];
NSDebugMLLog(@"requests",@"responsePageElement=%@",responsePageElement); NSDebugMLLog(@"requests",@"responsePageElement=%@",responsePageElement);
pageChanged=(responsePage!=responsePageElement); pageChanged=(responsePage!=responsePageElement);
[responseContext _setPageChanged:pageChanged];//?? [responseContext _setPageChanged:pageChanged];//??
@ -498,7 +500,7 @@ static const char rcsId[] = "$Id$";
NSAssert([[aContext elementID] length]==0, NSAssert([[aContext elementID] length]==0,
@"6 lockedDispatchWithPreparedPage elementID length>0"); @"6 lockedDispatchWithPreparedPage elementID length>0");
responseRequest=[responseContext request];//SoWhat ? responseRequest=[responseContext request];//SoWhat ?
[responseRequest isFromClientComponent];//SoWhat //Not used [responseRequest isFromClientComponent];//SoWhat
} }
NS_HANDLER NS_HANDLER
{ {

View file

@ -1,6 +1,6 @@
/** GSWConditional.m - <title>GSWeb: Class GSWConditional</title> /** GSWConditional.m - <title>GSWeb: Class GSWConditional</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -30,6 +30,10 @@
</license> </license>
**/ **/
#include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
/** /**
@ -185,8 +189,8 @@ Bindings
(doIt ? "YES" : "NO")); (doIt ? "YES" : "NO"));
if (doIt) if (doIt)
{ {
GSWRequest* _request=[aContext request]; //GSWRequest* _request=[aContext request];
BOOL isFromClientComponent=[_request isFromClientComponent]; //Deprecated BOOL isFromClientComponent=[_request isFromClientComponent];
[aContext appendZeroElementIDComponent]; [aContext appendZeroElementIDComponent];
[_childrenGroup takeValuesFromRequest:aRequest [_childrenGroup takeValuesFromRequest:aRequest
inContext:aContext]; inContext:aContext];
@ -238,13 +242,17 @@ Bindings
(doIt ? "YES" : "NO")); (doIt ? "YES" : "NO"));
if (doIt) if (doIt)
{ {
GSWRequest* request=[aContext request]; //GSWRequest* request=[aContext request];
BOOL isFromClientComponent=[request isFromClientComponent]; //Deprecated BOOL isFromClientComponent=[request isFromClientComponent];
[aContext appendZeroElementIDComponent]; [aContext appendZeroElementIDComponent];
NSDebugMLLog(@"gswdync",@"childrenGroup=%@",_childrenGroup); NSDebugMLLog(@"gswdync",@"childrenGroup=%@",_childrenGroup);
element=[_childrenGroup invokeActionForRequest:aRequest element=[_childrenGroup invokeActionForRequest:aRequest
inContext:aContext]; inContext:aContext];
NSDebugMLLog(@"gswdync",@"element=%@",element); NSDebugMLLog(@"gswdync",@"element=%@",element);
NSAssert2(!element || [element isKindOfClass:[GSWElement class]],
@"Element is a %@ not a GSWElement: %@",
[element class],
element);
[aContext deleteLastElementIDComponent]; [aContext deleteLastElementIDComponent];
}; };
GSWStopElement(aContext); GSWStopElement(aContext);
@ -295,8 +303,8 @@ Bindings
(doIt ? "YES" : "NO")); (doIt ? "YES" : "NO"));
if (doIt) if (doIt)
{ {
GSWRequest* request=[aContext request]; //GSWRequest* request=[aContext request];
BOOL isFromClientComponent=[request isFromClientComponent]; //Deprecated BOOL isFromClientComponent=[request isFromClientComponent];
[aContext appendZeroElementIDComponent]; [aContext appendZeroElementIDComponent];
[_childrenGroup appendToResponse:aResponse [_childrenGroup appendToResponse:aResponse
inContext:aContext]; inContext:aContext];

View file

@ -1,6 +1,6 @@
/** GSWConstantValueAssociation.m - <title>GSWeb: Class GSWConstantValueAssociation</title> /** GSWConstantValueAssociation.m - <title>GSWeb: Class GSWConstantValueAssociation</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Feb 1999 Date: Feb 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -30,7 +30,9 @@
</license> </license>
**/ **/
static const char rcsId[]="$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -105,7 +107,7 @@ NSString* GSWHTTPHeader_SetCookie=@"set-cookie";
NSString* GSWHTTPHeader_AdaptorVersion[2]={ @"x-gsweb-adaptor-version", @"x-webobjects-adaptor-version" }; NSString* GSWHTTPHeader_AdaptorVersion[2]={ @"x-gsweb-adaptor-version", @"x-webobjects-adaptor-version" };
NSString* GSWHTTPHeader_Method[2]={ @"x-gsweb-request-method", @"x-webobjects-request-method" }; NSString* GSWHTTPHeader_Method[2]={ @"x-gsweb-request-method", @"x-webobjects-request-method" };
NSString* GSWHTTPHeader_Response_HeaderLineEnd[2]={ @" GNUstep GSWeb", @" NeXT WebObjects" }; NSString* GSWHTTPHeader_Response_HeaderLineEnd[2]={ @"GNUstep GSWeb", @"NeXT WebObjects" };
NSString* GSWHTTPHeader_RequestMethod[2]={ @"x-gsweb-request-method", @"x-webobjects-request-method" }; NSString* GSWHTTPHeader_RequestMethod[2]={ @"x-gsweb-request-method", @"x-webobjects-request-method" };
NSString* GSWHTTPHeader_Recording[2]={ @"x-gsweb-recording", @"x-webobjects-recording" }; NSString* GSWHTTPHeader_Recording[2]={ @"x-gsweb-recording", @"x-webobjects-recording" };
NSString* GSWHTTPHeader_QueryString[2]={ @"x-gsweb-query-string", @"x-webobjects-query-string" }; NSString* GSWHTTPHeader_QueryString[2]={ @"x-gsweb-query-string", @"x-webobjects-query-string" };

View file

@ -28,7 +28,9 @@
</license> </license>
**/ **/
static const char rcsId[]="$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWCookie.m - <title>GSWeb: Class GSWResponse</title> /** GSWCookie.m - <title>GSWeb: Class GSWResponse</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Feb 1999 Date: Feb 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWDebug.m - <title>GSWeb: Debug</title> /** GSWDebug.m - <title>GSWeb: Debug</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include "GSWDebug.h" #include "GSWDebug.h"

View file

@ -1,4 +1,5 @@
/** GSWDefaultAdaptor.h - GSWeb: Class GSWDefaultAdaptor /** GSWDefaultAdaptor.h - GSWeb: Class GSWDefaultAdaptor
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2002 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>

View file

@ -30,12 +30,12 @@
</license> </license>
**/ **/
static const char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
//#include <gnustep/base/UnixFileHandle.h>
#include <gnustep/base/GSFileHandle.h> #include <gnustep/base/GSFileHandle.h>
#include "config.h"
#if HAVE_LIBWRAP #if HAVE_LIBWRAP
#include <tcpd.h> #include <tcpd.h>
@ -259,7 +259,7 @@ int allow_severity = LOG_INFO;
//-------------------------------------------------------------------- //--------------------------------------------------------------------
//NDFN //NDFN
-(id)announceNewConnection:(id)notification -(id)announceNewConnection:(NSNotification*)notification
{ {
GSWDefaultAdaptorThread* newThread=nil; GSWDefaultAdaptorThread* newThread=nil;
NSFileHandle* listenHandle=nil; NSFileHandle* listenHandle=nil;

View file

@ -30,7 +30,9 @@
</license> </license>
**/ **/
static const char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include <unistd.h> #include <unistd.h>
@ -684,7 +686,7 @@ withAdditionalHeaderLines:(NSArray*)addHeaders
NSArray* headersForKey=nil; NSArray* headersForKey=nil;
NSString* key=nil; NSString* key=nil;
NSString* anHeader=nil; NSString* anHeader=nil;
NSString* head=[NSString stringWithFormat:@"HTTP/%@ %d %@%@\n", NSString* head=[NSString stringWithFormat:@"HTTP/%@ %d %@ %@\n",
[response httpVersion], [response httpVersion],
[response status], [response status],
GSWHTTPHeader_Response_OK, GSWHTTPHeader_Response_OK,

View file

@ -1,6 +1,6 @@
/** GSWDeployedBundle.m - <title>GSWeb: Class GSWDeployedBundle</title> /** GSWDeployedBundle.m - <title>GSWeb: Class GSWDeployedBundle</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Mar 1999 Date: Mar 1999
@ -29,10 +29,11 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
//#include <pthread.h>
//==================================================================== //====================================================================
@implementation GSWDeployedBundle @implementation GSWDeployedBundle

View file

@ -61,6 +61,7 @@
@end @end
//==================================================================== //====================================================================
@interface GSWDirectAction (GSWTakeValuesConvenience) @interface GSWDirectAction (GSWTakeValuesConvenience)
-(NSArray*)additionalRequestPathArray;
-(void)takeFormValueArraysForKeyArray:(NSArray*)keys; -(void)takeFormValueArraysForKeyArray:(NSArray*)keys;
-(void)takeFormValuesForKeyArray:(NSArray*)keys; -(void)takeFormValuesForKeyArray:(NSArray*)keys;
-(void)takeFormValueArraysForKeys:(NSString*)firstKey,...; -(void)takeFormValueArraysForKeys:(NSString*)firstKey,...;

View file

@ -28,7 +28,9 @@
</license> </license>
**/ **/
static const char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -230,7 +232,7 @@ static const char rcsId[] = "$Id$";
NSDebugMLLog(@"requests", NSDebugMLLog(@"requests",
@"_actionResult=%@ class=%@", @"_actionResult=%@ class=%@",
actionResult, actionResult,
[actionResult class]); [(id)actionResult class]);
} }
NS_HANDLER NS_HANDLER
{ {
@ -313,6 +315,13 @@ static const char rcsId[] = "$Id$";
//==================================================================== //====================================================================
@implementation GSWDirectAction (GSWTakeValuesConvenience) @implementation GSWDirectAction (GSWTakeValuesConvenience)
//NDFN: return additional path elements
-(NSArray*)additionalRequestPathArray
{
return [GSWDirectActionRequestHandler
additionalRequestPathArrayFromRequest:[self request]];
};
//-------------------------------------------------------------------- //--------------------------------------------------------------------
-(void)takeFormValueArraysForKeyArray:(NSArray*)keyArray -(void)takeFormValueArraysForKeyArray:(NSArray*)keyArray
{ {

View file

@ -41,6 +41,7 @@
-(GSWResponse*)_nilResponse; -(GSWResponse*)_nilResponse;
-(void)_initializeRequestSessionIDInContext:(GSWContext*)aContext; -(void)_initializeRequestSessionIDInContext:(GSWContext*)aContext;
-(id)submitButtonsActionPathFromRequest:(GSWRequest*)aRequest; -(id)submitButtonsActionPathFromRequest:(GSWRequest*)aRequest;
+(NSArray*)additionalRequestPathArrayFromRequest:(GSWRequest*)aRequest;
@end @end
//==================================================================== //====================================================================

View file

@ -28,7 +28,9 @@
</license> </license>
**/ **/
static const char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -98,13 +100,11 @@ static const char rcsId[] = "$Id$";
}; };
break; break;
case 2: case 2:
default:
className=[requestHandlerPathArray objectAtIndex:0]; className=[requestHandlerPathArray objectAtIndex:0];
actionName=[NSString stringWithFormat:@"%@", actionName=[NSString stringWithFormat:@"%@",
[requestHandlerPathArray objectAtIndex:1]]; [requestHandlerPathArray objectAtIndex:1]];
break; break;
default:
ExceptionRaise0(@"GSWDirectActionRequestHandler",@"bad parameters count");
break;
}; };
NSDebugMLLog(@"requests",@"className=%@",className); NSDebugMLLog(@"requests",@"className=%@",className);
NSDebugMLLog(@"requests",@"actionName=%@",actionName); NSDebugMLLog(@"requests",@"actionName=%@",actionName);
@ -211,6 +211,18 @@ static const char rcsId[] = "$Id$";
return nil; return nil;
}; };
//NDFN: return additional path elements
+(NSArray*)additionalRequestPathArrayFromRequest:(GSWRequest*)aRequest
{
NSArray* requestHandlerPathArray=nil;
NSArray* additionalRequestPathArray=nil;
LOGObjectFnStart();
requestHandlerPathArray=[aRequest requestHandlerPathArray];
if ([requestHandlerPathArray count]>2)
additionalRequestPathArray=[requestHandlerPathArray subarrayWithRange:NSMakeRange(2,[requestHandlerPathArray count]-2)];
LOGObjectFnStart();
return additionalRequestPathArray;
};
@end @end
//==================================================================== //====================================================================

View file

@ -29,12 +29,17 @@
</license> </license>
**/ **/
static const char rcsId[]="$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@class EOUndoManager; @class EOUndoManager;
#if GDL2 // GDL2 implementation #if GDL2 // GDL2 implementation
#include <EOControl/EOUndoManager.h>
#include <EOControl/EOSortOrdering.h>
#include <EOControl/EOClassDescription.h>
//==================================================================== //====================================================================
@interface GSWDisplayGroup (Private) @interface GSWDisplayGroup (Private)
@ -333,7 +338,7 @@ Description: <EOKeyValueUnarchiver: 0x1a84d20>
{ {
EOUndoManager* undoManager=nil; EOUndoManager* undoManager=nil;
LOGObjectFnStart(); LOGObjectFnStart();
undoManager=[[_dataSource editingContext] undoManager]; undoManager=(EOUndoManager*)[[_dataSource editingContext] undoManager];
LOGObjectFnStop(); LOGObjectFnStop();
return undoManager; return undoManager;
}; };
@ -1240,7 +1245,7 @@ Description: <EOKeyValueUnarchiver: 0x1a84d20>
qualifier=[self qualifierFromQueryValues];//OK qualifier=[self qualifierFromQueryValues];//OK
NSDebugMLLog(@"gswdisplaygroup",@"qualifier=%@",qualifier); NSDebugMLLog(@"gswdisplaygroup",@"qualifier=%@",qualifier);
NSDebugMLLog(@"gswdisplaygroup",@"_dataSource=%@",_dataSource); NSDebugMLLog(@"gswdisplaygroup",@"_dataSource=%@",_dataSource);
[_dataSource setAuxiliaryQualifier:qualifier];//OK [(EODatabaseDataSource*)_dataSource setAuxiliaryQualifier:qualifier];//OK
NSDebugMLLog0(@"gswdisplaygroup",@"Will fetch"); NSDebugMLLog0(@"gswdisplaygroup",@"Will fetch");
[self fetch];//OK use ret Value ? [self fetch];//OK use ret Value ?
@ -2151,7 +2156,7 @@ STOP ?
(void*)sel, (void*)sel,
NSStringFromSelector(sel)); NSStringFromSelector(sel));
cd=[_dataSource classDescriptionForObjects];// //ret [EOEntityClassDescription]: <EOEntityClassDescription: 0x1a3c7b0> cd=[_dataSource classDescriptionForObjects];// //ret [EOEntityClassDescription]: <EOEntityClassDescription: 0x1a3c7b0>
validateException=[cd validateValue:value validateException=[cd validateValue:&value
forKey:key]; forKey:key];
NSDebugMLLog(@"gswdisplaygroup",@"validateException=%@",validateException); NSDebugMLLog(@"gswdisplaygroup",@"validateException=%@",validateException);
if (validateException) if (validateException)

View file

@ -1,6 +1,6 @@
/** GSWDynamicElement.m - <title>GSWeb: Class GSWDynamicElement</title> /** GSWDynamicElement.m - <title>GSWeb: Class GSWDynamicElement</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWDynamicURLString.m - <title>GSWeb: Class GSWDynamicURLString</title> /** GSWDynamicURLString.m - <title>GSWeb: Class GSWDynamicURLString</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Mar 1999 Date: Mar 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWElement.m - <title>GSWeb: Class GSWElement</title> /** GSWElement.m - <title>GSWeb: Class GSWElement</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -39,33 +39,6 @@
NSMutableString* _string; NSMutableString* _string;
}; };
-(id)init;
-(id)initWithCharactersNoCopy:(unichar*)chars
length:(unsigned)length
freeWhenDone:(BOOL)flag;
-(id)initWithCStringNoCopy:(char*)byteString
length:(unsigned)length
freeWhenDone:(BOOL)flag;
-(id)initWithCapacity:(unsigned)capacity;
-(unsigned)length;
-(unichar)characterAtIndex:(unsigned)index;
-(void)replaceCharactersInRange:(NSRange)range
withString:(NSString*)aString;
-(BOOL)canBeConvertedToEncoding:(NSStringEncoding)encoding;
-(void)dealloc;
-(void)getCString:(char*)buffer
maxLength:(unsigned int)maxLength
range:(NSRange)aRange
remainingRange:(NSRange *)leftoverRange;
-(void)getCString:(char*)buffer
maxLength:(unsigned int)maxLength;
-(void)getCString:(char *)buffer;
-(id)initWithCoder:(NSCoder*)decoder;
-(void)encodeWithCoder:(NSCoder*)encoder;
-(id)copyWithZone:(NSZone *)zone;
-(const char*)cString;
-(unsigned int)cStringLength;
-(BOOL)isSearchOverForSenderID:(NSString*)senderID; -(BOOL)isSearchOverForSenderID:(NSString*)senderID;
@end @end

View file

@ -1,6 +1,6 @@
/** GSWElementIDString.m - <title>GSWeb: Class GSWElementIDString</title> /** GSWElementIDString.m - <title>GSWeb: Class GSWElementIDString</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -113,9 +115,9 @@ static char rcsId[] = "$Id$";
LOGObjectFnStart(); LOGObjectFnStart();
GSWLogAssertGood(self); GSWLogAssertGood(self);
GSWLogAssertGood(_string); GSWLogAssertGood(_string);
GSWLogMemC("_string deallocate"); GSWLogMemCF("_string deallocate %p",self);
DESTROY(_string); DESTROY(_string);
GSWLogMemC("_string deallocated"); GSWLogMemCF("_string deallocated %p",self);
[super dealloc]; [super dealloc];
GSWLogMemC("GSWElementIDString end of dealloc"); GSWLogMemC("GSWElementIDString end of dealloc");
}; };
@ -151,6 +153,7 @@ static char rcsId[] = "$Id$";
DESTROY(_string); DESTROY(_string);
[decoder decodeValueOfObjCType:@encode(id) [decoder decodeValueOfObjCType:@encode(id)
at:&_string]; at:&_string];
RETAIN(_string);
return self; return self;
}; };

View file

@ -1,6 +1,6 @@
/** GSWEmbeddedObject.m - <title>GSWeb: Class GSWEmbeddedObject</title> /** GSWEmbeddedObject.m - <title>GSWeb: Class GSWEmbeddedObject</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWFileUpload.m - <title>GSWeb: Class GSWFileUpload</title> /** GSWFileUpload.m - <title>GSWeb: Class GSWFileUpload</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Sep 1999 Date: Sep 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -27,7 +27,9 @@
</license> </license>
**/ **/
static const char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -328,6 +330,7 @@ static const char rcsId[] = "$Id$";
NSDebugMLLog(@"gswdync",@"i=%d",i); NSDebugMLLog(@"gswdync",@"i=%d",i);
element=[[_dynamicChildren objectAtIndex:i] invokeActionForRequest:request element=[[_dynamicChildren objectAtIndex:i] invokeActionForRequest:request
inContext:context]; inContext:context];
// if (![context _wasFormSubmitted] && [[context elementID] compare:senderID]==NSOrderedDescending) // if (![context _wasFormSubmitted] && [[context elementID] compare:senderID]==NSOrderedDescending)
if (![context _wasFormSubmitted] && [[context elementID] isSearchOverForSenderID:senderID]) if (![context _wasFormSubmitted] && [[context elementID] isSearchOverForSenderID:senderID])
{ {
@ -344,6 +347,10 @@ static const char rcsId[] = "$Id$";
element=[super invokeActionForRequest:request element=[super invokeActionForRequest:request
inContext:context]; inContext:context];
NSAssert2(!element || [element isKindOfClass:[GSWElement class]],
@"Element is a %@ not a GSWElement: %@",
[element class],
element);
NSDebugMLLog(@"gswdync",@"isFormSubmited=%d",isFormSubmited); NSDebugMLLog(@"gswdync",@"isFormSubmited=%d",isFormSubmited);
NSDebugMLLog(@"gswdync",@"[context _wasActionInvoked]=%d",[context _wasActionInvoked]); NSDebugMLLog(@"gswdync",@"[context _wasActionInvoked]=%d",[context _wasActionInvoked]);

View file

@ -1,6 +1,6 @@
/** GSWFrame.m - <title>GSWeb: Class GSWFrame</title> /** GSWFrame.m - <title>GSWeb: Class GSWFrame</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWGenericContainer.m - <title>GSWeb: Class GSWGenericContainer</title> /** GSWGenericContainer.m - <title>GSWeb: Class GSWGenericContainer</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWGenericElement.m - <title>GSWeb: Class GSWGenericElement</title> /** GSWGenericElement.m - <title>GSWeb: Class GSWGenericElement</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,5 +1,6 @@
/** GSWGeometricRegion.h - <title>GSWeb: Class GSWRequest</title> /** GSWGeometricRegion.h - <title>GSWeb: Class GSWRequest</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc.
Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Sept 1999 Date: Sept 1999
@ -62,8 +63,8 @@
-(NSString*)userDefinedString; -(NSString*)userDefinedString;
-(id)userDefinedValue; -(id)userDefinedValue;
-(BOOL)hitTest:(NSPoint*)point; -(BOOL)hitTest:(NSPoint*)point;
-(BOOL)hitTestX:(unsigned int)x -(BOOL)hitTestX:(int)x
y:(unsigned int)y; y:(int)y;
+(GSWGeometricRegion*)hitTestX:(int)x +(GSWGeometricRegion*)hitTestX:(int)x
y:(int)y y:(int)y
inRegions:(NSArray*)regions; inRegions:(NSArray*)regions;
@ -124,8 +125,8 @@
-(NSString*)description; -(NSString*)description;
-(id)copyWithZone:(NSZone*)zone; -(id)copyWithZone:(NSZone*)zone;
-(BOOL)hitTestX:(unsigned int)x -(BOOL)hitTestX:(int)x
y:(unsigned int)y; y:(int)y;
@end @end
@ -236,8 +237,8 @@
userDefinedString:(NSString*)userDefinedString userDefinedString:(NSString*)userDefinedString
userDefinedValue:(id)userDefinedValue; userDefinedValue:(id)userDefinedValue;
-(NSString*)description; -(NSString*)description;
-(BOOL)hitTestX:(unsigned int)x -(BOOL)hitTestX:(int)x
y:(unsigned int)y; y:(int)y;
@ -266,8 +267,8 @@
userDefinedString:(NSString*)userDefinedString userDefinedString:(NSString*)userDefinedString
userDefinedValue:(id)userDefinedValue; userDefinedValue:(id)userDefinedValue;
-(NSString*)description; -(NSString*)description;
-(BOOL)hitTestX:(unsigned int)x -(BOOL)hitTestX:(int)x
y:(unsigned int)y; y:(int)y;
@end @end

View file

@ -1,6 +1,6 @@
/** GSWGeometricRegion.m - <title>GSWeb: Class GSWRequest</title> /** GSWGeometricRegion.m - <title>GSWeb: Class GSWRequest</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Sept 1999 Date: Sept 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include <math.h> #include <math.h>
@ -326,15 +328,15 @@ BOOL canBeOnSegment(NSPoint m,NSPoint a,NSPoint b)
-(BOOL)hitTest:(NSPoint*)point -(BOOL)hitTest:(NSPoint*)point
{ {
if (point) if (point)
return [self hitTestX:(unsigned int)point->x return [self hitTestX:(int)point->x
y:(unsigned int)point->y]; y:(int)point->y];
else else
return NO; return NO;
}; };
//-------------------------------------------------------------------- //--------------------------------------------------------------------
-(BOOL)hitTestX:(unsigned int)x -(BOOL)hitTestX:(int)x
y:(unsigned int)y y:(int)y
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
return NO; return NO;
@ -521,8 +523,8 @@ BOOL canBeOnSegment(NSPoint m,NSPoint a,NSPoint b)
}; };
//-------------------------------------------------------------------- //--------------------------------------------------------------------
-(BOOL)hitTestX:(unsigned int)x -(BOOL)hitTestX:(int)x
y:(unsigned int)y y:(int)y
{ {
BOOL hitOk=NO; BOOL hitOk=NO;
NSPoint test=NSMakePoint(x,y); NSPoint test=NSMakePoint(x,y);
@ -911,8 +913,8 @@ BOOL canBeOnSegment(NSPoint m,NSPoint a,NSPoint b)
}; };
//-------------------------------------------------------------------- //--------------------------------------------------------------------
-(BOOL)hitTestX:(unsigned int)x -(BOOL)hitTestX:(int)x
y:(unsigned int)y y:(int)y
{ {
BOOL hitOk=NO; BOOL hitOk=NO;
LOGObjectFnStart(); LOGObjectFnStart();
@ -1009,8 +1011,8 @@ BOOL canBeOnSegment(NSPoint m,NSPoint a,NSPoint b)
//-------------------------------------------------------------------- //--------------------------------------------------------------------
-(BOOL)hitTestX:(unsigned int)x -(BOOL)hitTestX:(int)x
y:(unsigned int)y y:(int)y
{ {
BOOL hitOk=NO; BOOL hitOk=NO;
int i=0; int i=0;

View file

@ -1,6 +1,6 @@
/** GSWHTMLBareString.m - <title>GSWeb: Class GSWHTMLBareString</title> /** GSWHTMLBareString.m - <title>GSWeb: Class GSWHTMLBareString</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWHTMLComment.m - <title>GSWeb: Class GSWRequest</title> /** GSWHTMLComment.m - <title>GSWeb: Class GSWRequest</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Sept 1999 Date: Sept 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -30,7 +30,9 @@
</license> </license>
**/ **/
static const char rcsId[]="$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -567,6 +569,11 @@ attributeAssociations:(NSDictionary*)attributeAssociations
{ {
element=[[dynamicChildren objectAtIndex:elementsN[2]] invokeActionForRequest:aRequest element=[[dynamicChildren objectAtIndex:elementsN[2]] invokeActionForRequest:aRequest
inContext:aContext]; inContext:aContext];
NSAssert3(!element || [element isKindOfClass:[GSWElement class]],
@"From: %@ Element is a %@ not a GSWElement: %@",
[dynamicChildren objectAtIndex:elementsN[2]],
[element class],
element);
if (![aContext _wasFormSubmitted] && [[aContext elementID] isSearchOverForSenderID:senderID]) if (![aContext _wasFormSubmitted] && [[aContext elementID] isSearchOverForSenderID:senderID])
{ {
NSDebugMLLog(@"gswdync",@"id=%@ senderid=%@ => search is over", NSDebugMLLog(@"gswdync",@"id=%@ senderid=%@ => search is over",

View file

@ -1,6 +1,6 @@
/** GSWHTMLParserExt.m - <title>GSWeb: Class GSWHTMLParser: Categories</title> /** GSWHTMLParserExt.m - <title>GSWeb: Class GSWHTMLParser: Categories</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Mar 1999 Date: Mar 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWHTMLStaticElement.m - <title>GSWeb: Class GSWHTMLStaticElement</title> /** GSWHTMLStaticElement.m - <title>GSWeb: Class GSWHTMLStaticElement</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Feb 1999 Date: Feb 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -291,8 +293,8 @@ static char rcsId[] = "$Id$";
inContext:(GSWContext*)context inContext:(GSWContext*)context
{ {
//OK //OK
GSWRequest* request=[context request]; //GSWRequest* request=[context request];
BOOL isFromClientComponent=[request isFromClientComponent]; //bis repetitam //not used BOOL isFromClientComponent=[request isFromClientComponent]; //bis repetitam
GSWStartElement(context); GSWStartElement(context);
GSWSaveAppendToResponseElementID(context); GSWSaveAppendToResponseElementID(context);
if ([_elementsMap length]>0) if ([_elementsMap length]>0)
@ -382,6 +384,11 @@ static char rcsId[] = "$Id$";
{ {
element=[[aDynamicChildrensArray objectAtIndex:elementsN[1]] invokeActionForRequest:request element=[[aDynamicChildrensArray objectAtIndex:elementsN[1]] invokeActionForRequest:request
inContext:context]; inContext:context];
NSAssert3(!element || [element isKindOfClass:[GSWElement class]],
@"From: %@, Element is a %@ not a GSWElement: %@",
[aDynamicChildrensArray objectAtIndex:elementsN[1]],
[element class],
element);
if (![context _wasFormSubmitted] && [[context elementID] isSearchOverForSenderID:senderID]) if (![context _wasFormSubmitted] && [[context elementID] isSearchOverForSenderID:senderID])
{ {
searchIsOver=YES; searchIsOver=YES;

View file

@ -1,6 +1,6 @@
/** GSWHTMLStaticGroup.m - <title>GSWeb: Class GSWHTMLStaticGroup</title> /** GSWHTMLStaticGroup.m - <title>GSWeb: Class GSWHTMLStaticGroup</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Feb 1999 Date: Feb 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -28,10 +28,11 @@
</license> </license>
**/ **/
static const char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include <gnustep/base/GSCategories.h>
//==================================================================== //====================================================================
@implementation GSWHTMLURLValuedElement @implementation GSWHTMLURLValuedElement
@ -217,12 +218,25 @@ static const char rcsId[] = "$Id$";
{ {
GSWComponent* component=[aContext component]; GSWComponent* component=[aContext component];
if (_value) if (_value)
{
element=[_value valueInComponent:component]; element=[_value valueInComponent:component];
NSAssert4(!element || [element isKindOfClass:[GSWElement class]],
@"_value: %@ component: %@ Element is a %@ not a GSWElement: %@",
_value,
component,
[element class],
element);
}
else if (_pageName) else if (_pageName)
{ {
NSString* pageNameValue=[_pageName valueInComponent:component]; NSString* pageNameValue=[_pageName valueInComponent:component];
element=[GSWApp pageWithName:pageNameValue element=[GSWApp pageWithName:pageNameValue
inContext:aContext]; inContext:aContext];
NSAssert3(!element || [element isKindOfClass:[GSWElement class]],
@"pageNameValue: %@ Element is a %@ not a GSWElement: %@",
pageNameValue,
[element class],
element);
if (!WOStrictFlag && element)//GNUstepWeb only if (!WOStrictFlag && element)//GNUstepWeb only
{ {
if (_pageSetVarAssociations) if (_pageSetVarAssociations)
@ -256,12 +270,22 @@ static const char rcsId[] = "$Id$";
//the end ? //the end ?
//TODOV //TODOV
if (!element) if (!element)
{
element=[aContext page]; element=[aContext page];
NSAssert2(!element || [element isKindOfClass:[GSWElement class]],
@"Element is a %@ not a GSWElement: %@",
[element class],
element);
};
} }
else else
{ {
element=[super invokeActionForRequest:aRequest element=[super invokeActionForRequest:aRequest
inContext:aContext]; inContext:aContext];
NSAssert2(!element || [element isKindOfClass:[GSWElement class]],
@"Element is a %@ not a GSWElement: %@",
[element class],
element);
}; };
NSDebugMLLog(@"gswdync",@"GSWHTMLURLValuedElement invoke element=%@",element); NSDebugMLLog(@"gswdync",@"GSWHTMLURLValuedElement invoke element=%@",element);
NSDebugMLLog(@"gswdync",@"senderID=%@",[aContext senderID]); NSDebugMLLog(@"gswdync",@"senderID=%@",[aContext senderID]);

View file

@ -1,6 +1,6 @@
/** GSWHiddenField.m - <title>GSWeb: Class GSWHiddenField</title> /** GSWHiddenField.m - <title>GSWeb: Class GSWHiddenField</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -28,7 +28,9 @@
</license> </license>
**/ **/
static const char rcsId[]="$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -510,7 +512,7 @@ static const char rcsId[]="$Id$";
{ {
NSString* actionString=nil; NSString* actionString=nil;
LOGObjectFnStart(); LOGObjectFnStart();
actionString=[self computeActionStringWithActionClassAssociation:_actionClass actionString=[(GSWHTMLDynamicElement*)self computeActionStringWithActionClassAssociation:_actionClass
directActionNameAssociation:_directActionName directActionNameAssociation:_directActionName
inContext:context]; inContext:context];
LOGObjectFnStop(); LOGObjectFnStop();
@ -558,7 +560,7 @@ static const char rcsId[]="$Id$";
{ {
NSDictionary* queryDictionary=nil; NSDictionary* queryDictionary=nil;
LOGObjectFnStart(); LOGObjectFnStart();
queryDictionary=[self computeQueryDictionaryWithActionClassAssociation:_actionClass queryDictionary=[(GSWHTMLDynamicElement*)self computeQueryDictionaryWithActionClassAssociation:_actionClass
directActionNameAssociation:_directActionName directActionNameAssociation:_directActionName
queryDictionaryAssociation:_queryDictionary queryDictionaryAssociation:_queryDictionary
otherQueryAssociations:_otherQueryAssociations otherQueryAssociations:_otherQueryAssociations
@ -633,7 +635,7 @@ static const char rcsId[]="$Id$";
else else
{ {
// call awakeInContext when _element is sleeping deeply // call awakeInContext when _element is sleeping deeply
[element ensureAwakeInContext:context]; [(GSWComponent*)element ensureAwakeInContext:context];
/* /*
if (![_element context]) { if (![_element context]) {
NSDebugMLLog(@"gswdync",@"_element sleeps, awake it = %@",_element); NSDebugMLLog(@"gswdync",@"_element sleeps, awake it = %@",_element);

View file

@ -28,7 +28,9 @@
</license> </license>
**/ **/
static const char rcsId[]="$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -47,11 +49,10 @@ static const char rcsId[]="$Id$";
_width = [[inAssociations objectForKey:width__Key _width = [[inAssociations objectForKey:width__Key
withDefaultObject:[_width autorelease]] retain]; withDefaultObject:[_width autorelease]] retain];
NSDebugMLLog(@"gswdync",@"width=%@",_width); NSDebugMLLog(@"gswdync",@"_width=%@",_width);
_height = [[inAssociations objectForKey:height__Key _height = [[inAssociations objectForKey:height__Key
withDefaultObject:[_height autorelease]] retain]; withDefaultObject:[_height autorelease]] retain];
NSDebugMLLog(@"gswdync",@"height=%@",_height); NSDebugMLLog(@"gswdync",@"_height=%@",_height);
[associations removeObjectForKey:width__Key]; [associations removeObjectForKey:width__Key];
[associations removeObjectForKey:height__Key]; [associations removeObjectForKey:height__Key];
@ -110,27 +111,38 @@ static const char rcsId[]="$Id$";
inContext:(GSWContext*)context inContext:(GSWContext*)context
{ {
//OK //OK
GSWComponent* component=nil;
LOGObjectFnStartC("GSWImage"); LOGObjectFnStartC("GSWImage");
[super appendGSWebObjectsAssociationsToResponse:response [super appendGSWebObjectsAssociationsToResponse:response
inContext:context]; inContext:context];
NSDebugMLLog(@"gswdync",@"_width=%@",_width);
NSDebugMLLog(@"gswdync",@"_height=%@",_height);
if (_width || _height) if (_width || _height)
{ {
GSWComponent* component=[context component];
if (_width) if (_width)
{ {
id width=[_width valueInComponent:component]; id width=[_width valueInComponent:component];
NSDebugMLLog(@"gswdync",@"width=%@",width);
if (width)
{
[response _appendContentAsciiString:@" width=\""]; [response _appendContentAsciiString:@" width=\""];
[response appendContentHTMLString:width]; [response appendContentHTMLString:width];
[response appendContentCharacter:'"']; [response appendContentCharacter:'"'];
}; };
};
if (_height) if (_height)
{ {
id height=[_height valueInComponent:component]; id height=[_height valueInComponent:component];
NSDebugMLLog(@"gswdync",@"height=%@",height);
if (height)
{
[response _appendContentAsciiString:@" height=\""]; [response _appendContentAsciiString:@" height=\""];
[response appendContentHTMLString:height]; [response appendContentHTMLString:height];
[response appendContentCharacter:'"']; [response appendContentCharacter:'"'];
}; };
}; };
};
LOGObjectFnStopC("GSWImage"); LOGObjectFnStopC("GSWImage");
}; };

View file

@ -1,6 +1,6 @@
/** GSWImageButton.m - <title>GSWeb: Class GSWImageButton</title> /** GSWImageButton.m - <title>GSWeb: Class GSWImageButton</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -292,8 +294,8 @@ static char rcsId[] = "$Id$";
inContext:(GSWContext*)context inContext:(GSWContext*)context
{ {
//OK //OK
GSWRequest* request=[context request]; //GSWRequest* request=[context request];
BOOL isFromClientComponent=[request isFromClientComponent]; //Unused now BOOL isFromClientComponent=[request isFromClientComponent];
BOOL disabledInContext=[self disabledInContext:context]; BOOL disabledInContext=[self disabledInContext:context];
GSWSaveAppendToResponseElementID(context);//Debug Only GSWSaveAppendToResponseElementID(context);//Debug Only
if (disabledInContext) if (disabledInContext)
@ -455,7 +457,7 @@ static char rcsId[] = "$Id$";
if (element && [element isKindOfClass:[GSWComponent class]]) if (element && [element isKindOfClass:[GSWComponent class]])
{ {
// call awakeInContext when _element is sleeping deeply // call awakeInContext when _element is sleeping deeply
[element ensureAwakeInContext:context]; [(GSWComponent*)element ensureAwakeInContext:context];
} }
} }
else else
@ -474,7 +476,7 @@ static char rcsId[] = "$Id$";
if (element && [element isKindOfClass:[GSWComponent class]]) if (element && [element isKindOfClass:[GSWComponent class]])
{ {
// call awakeInContext when _element is sleeping deeply // call awakeInContext when _element is sleeping deeply
[element ensureAwakeInContext:context]; [(GSWComponent*)element ensureAwakeInContext:context];
} }
} }
else else

View file

@ -1,6 +1,6 @@
/** GSWJavaScript.m - <title>GSWeb: Class GSWJavaScript</title> /** GSWJavaScript.m - <title>GSWeb: Class GSWJavaScript</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWKeyValueAssociation.m - <title>GSWeb: Class GSWKeyValueAssociation</title> /** GSWKeyValueAssociation.m - <title>GSWeb: Class GSWKeyValueAssociation</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWMailDelivery.m - <title>GSWeb: Class GSWMailDelivery</title> /** GSWMailDelivery.m - <title>GSWeb: Class GSWMailDelivery</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Feb 1999 Date: Feb 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWMultiKeyDictionary.m - <title>GSWeb: Class GSWMultiKeyDictionary</title> /** GSWMultiKeyDictionary.m - <title>GSWeb: Class GSWMultiKeyDictionary</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Mar 1999 Date: Mar 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWNestedList.m - <title>GSWeb: Class GSWNestedList</title> /** GSWNestedList.m - <title>GSWeb: Class GSWNestedList</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWPageDefElement.m - <title>GSWeb: Class GSWPageDefElement</title> /** GSWPageDefElement.m - <title>GSWeb: Class GSWPageDefElement</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Mar 1999 Date: Mar 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWPageDefParserExt.m - <title>GSWeb: Class GSWPageDefParserExt</title> /** GSWPageDefParserExt.m - <title>GSWeb: Class GSWPageDefParserExt</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Mar 1999 Date: Mar 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWParam.m - <title>GSWeb: Class GSWParam</title> /** GSWParam.m - <title>GSWeb: Class GSWParam</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWPasswordField.m - <title>GSWeb: Class GSWPasswordField</title> /** GSWPasswordField.m - <title>GSWeb: Class GSWPasswordField</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWPopUpButton.m - <title>GSWeb: Class GSWPopUpButton</title> /** GSWPopUpButton.m - <title>GSWeb: Class GSWPopUpButton</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -21,7 +21,9 @@
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include <unistd.h> #include <unistd.h>

View file

@ -1,6 +1,6 @@
/** GSWProjectBundle.m - <title>GSWeb: Class GSWProjectBundle</title> /** GSWProjectBundle.m - <title>GSWeb: Class GSWProjectBundle</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Mar 1999 Date: Mar 1999
@ -29,7 +29,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include <Foundation/NSFileManager.h> #include <Foundation/NSFileManager.h>

View file

@ -1,6 +1,6 @@
/** GSWRadioButtonList.m - <title>GSWeb: Class GSWRadioButtonList</title> /** GSWRadioButtonList.m - <title>GSWeb: Class GSWRadioButtonList</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWRepetition.m - <title>GSWeb: Class GSWRepetition</title> /** GSWRepetition.m - <title>GSWeb: Class GSWRepetition</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -29,7 +29,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -413,6 +415,11 @@ static char rcsId[] = "$Id$";
[context appendZeroElementIDComponent]; [context appendZeroElementIDComponent];
element=[_childrenGroup invokeActionForRequest:request element=[_childrenGroup invokeActionForRequest:request
inContext:context]; inContext:context];
NSAssert3(!element || [element isKindOfClass:[GSWElement class]],
@"_childrenGroup=%@ Element is a %@ not a GSWElement: %@",
_childrenGroup,
[element class],
element);
[context deleteLastElementIDComponent]; [context deleteLastElementIDComponent];
[self stopOneIterationWithIndex:i [self stopOneIterationWithIndex:i
stopIndex:stopIndexValue stopIndex:stopIndexValue

View file

@ -214,6 +214,8 @@
-(NSString*)senderID; -(NSString*)senderID;
//NDFN //NDFN
-(NSDictionary*)uriOrFormOrCookiesElementsByLookingForCookieFirst:(BOOL)lookCookieFirst; -(NSDictionary*)uriOrFormOrCookiesElementsByLookingForCookieFirst:(BOOL)lookCookieFirst;
-(id)uriOrFormOrCookiesElementForKey:(NSString*)key
byLookingForCookieFirst:(BOOL)lookCookieFirst;
-(NSMutableDictionary*)uriOrFormOrCookiesElements; -(NSMutableDictionary*)uriOrFormOrCookiesElements;
-(NSMutableDictionary*)_uriElements; -(NSMutableDictionary*)_uriElements;
@end @end

View file

@ -28,7 +28,9 @@
</license> </license>
**/ **/
static const char rcsId[]="$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include <Foundation/GSMime.h> #include <Foundation/GSMime.h>
@ -385,8 +387,7 @@ static const char rcsId[]="$Id$";
//-------------------------------------------------------------------- //--------------------------------------------------------------------
-(NSString*)description -(NSString*)description
{ {
return [NSString stringWithFormat:@"<%s %p - return [NSString stringWithFormat:@"<%s %p - method=%@, uri=%@, httpVersion=%@, headers=%@, content=%@, userInfo=%@, defaultFormValueEncoding=%u, formValueEncoding=%u, formValues=%@, uriElements=%@, cookie=%@, applicationURLPrefix=%@, requestHandlerPathArray=%@, browserLanguages=%@, requestType=%d, isUsingWebServer=%s, formValueEncodingDetectionEnabled=%s, applicationNumber=%d",
method=%@, uri=%@, httpVersion=%@, headers=%@, content=%@, userInfo=%@, defaultFormValueEncoding=%u, formValueEncoding=%u, formValues=%@, uriElements=%@, cookie=%@, applicationURLPrefix=%@, requestHandlerPathArray=%@, browserLanguages=%@, requestType=%d, isUsingWebServer=%s, formValueEncodingDetectionEnabled=%s, applicationNumber=%d",
object_get_class_name(self), object_get_class_name(self),
(void*)self, (void*)self,
_method, _method,
@ -575,7 +576,7 @@ method=%@, uri=%@, httpVersion=%@, headers=%@, content=%@, userInfo=%@, defaultF
// uriElementForKey: // uriElementForKey:
-(NSString*)uriElementForKey:(NSString*)key -(NSString*)uriElementForKey:(NSString*)key
{ {
NSArray* uriElement=nil; NSString* uriElement=nil;
NSDictionary* uriElements=nil; NSDictionary* uriElements=nil;
LOGObjectFnStart(); LOGObjectFnStart();
NS_DURING NS_DURING
@ -1373,13 +1374,15 @@ method=%@, uri=%@, httpVersion=%@, headers=%@, content=%@, userInfo=%@, defaultF
key,[value objectAtIndex:i]]; key,[value objectAtIndex:i]];
}; };
[headersString appendString:@"\n"]; [headersString appendString:@"\n"];
NSDebugMLog(@"headersString=%@",headersString); NSDebugMLLog(@"requests",@"headersString=%@",headersString);
NSDebugMLLog(@"requests",@"content=%@",[[[NSString alloc]initWithData:_content
encoding:NSISOLatin1StringEncoding]autorelease]);
headersData=[headersString dataUsingEncoding:NSISOLatin1StringEncoding]; headersData=[headersString dataUsingEncoding:NSISOLatin1StringEncoding];
parser=[GSMimeParser mimeParser]; parser=[GSMimeParser mimeParser];
[parser parse:headersData]; [parser parse:headersData];
if ([parser parse:_content]) if ([parser parse:_content])
[parser parse:nil]; [parser parse:nil];
NSDebugMLog(@"[parser isComplete]=%d",[parser isComplete]); NSDebugMLLog(@"requests",@"[parser isComplete]=%d",[parser isComplete]);
if ([parser isComplete] == NO) if ([parser isComplete] == NO)
{ {
//TODO //TODO
@ -1389,18 +1392,18 @@ method=%@, uri=%@, httpVersion=%@, headers=%@, content=%@, userInfo=%@, defaultF
GSMimeDocument* document = [parser mimeDocument]; GSMimeDocument* document = [parser mimeDocument];
NSArray* content=nil; NSArray* content=nil;
NSString* contentSubtype=nil; NSString* contentSubtype=nil;
NSDebugMLog(@"document=%@",document); NSDebugMLLog(@"requests",@"document=%@",document);
content=[document content]; content=[document content];
NSDebugMLog(@"contentType=%@",[document contentType]); NSDebugMLLog(@"requests",@"contentType=%@",[document contentType]);
contentSubtype=[document contentSubtype]; contentSubtype=[document contentSubtype];
NSDebugMLog(@"contentSubtype=%@",contentSubtype); NSDebugMLLog(@"requests",@"contentSubtype=%@",contentSubtype);
if ([contentSubtype isEqual:@"form-data"]) if ([contentSubtype isEqual:@"form-data"])
{ {
NSDebugMLog(@"contentID=%@",[document contentID]); NSDebugMLLog(@"requests",@"contentID=%@",[document contentID]);
NSDebugMLog(@"[document allHeaders]=%@",[document allHeaders]); NSDebugMLLog(@"requests",@"[document allHeaders]=%@",[document allHeaders]);
NSDebugMLog(@"[document content]=%@",content); NSDebugMLLog(@"requests",@"[document content]=%@",content);
NSDebugMLog(@"[document content] class=%@",[content class]); NSDebugMLLog(@"requests",@"[document content] class=%@",[content class]);
if (![content isKindOfClass:[NSArray class]]) if (![content isKindOfClass:[NSArray class]])
{ {
@ -1420,20 +1423,20 @@ method=%@, uri=%@, httpVersion=%@, headers=%@, content=%@, userInfo=%@, defaultF
NSAssert2([aDoc isKindOfClass:[GSMimeDocument class]], NSAssert2([aDoc isKindOfClass:[GSMimeDocument class]],
@"Document is not a GSMimeDocument but a %@:\n%@", @"Document is not a GSMimeDocument but a %@:\n%@",
[aDoc class],aDoc); [aDoc class],aDoc);
NSDebugMLog(@"aDoc=%@",aDoc); NSDebugMLLog(@"requests",@"aDoc=%@",aDoc);
aDocContent=[aDoc content]; aDocContent=[aDoc content];
NSDebugMLog(@"aDocContent=%@",aDocContent); NSDebugMLLog(@"requests",@"aDocContent=%@",aDocContent);
NSDebugMLog(@"contentType=%@",[aDoc contentType]); NSDebugMLLog(@"requests",@"contentType=%@",[aDoc contentType]);
NSDebugMLog(@"contentSubtype=%@",[aDoc contentSubtype]); NSDebugMLLog(@"requests",@"contentSubtype=%@",[aDoc contentSubtype]);
NSDebugMLog(@"contentID=%@",[aDoc contentID]); NSDebugMLLog(@"requests",@"contentID=%@",[aDoc contentID]);
contentDispositionHeader=[aDoc headerNamed:@"content-disposition"]; contentDispositionHeader=[aDoc headerNamed:@"content-disposition"];
NSDebugMLog(@"contentDispositionHeader=%@",contentDispositionHeader); NSDebugMLLog(@"requests",@"contentDispositionHeader=%@",contentDispositionHeader);
contentDispositionValue=[contentDispositionHeader value]; contentDispositionValue=[contentDispositionHeader value];
contentDispositionParams=[contentDispositionHeader parameters]; contentDispositionParams=[contentDispositionHeader parameters];
NSDebugMLog(@"contentDispositionValue=%@",contentDispositionValue); NSDebugMLLog(@"requests",@"contentDispositionValue=%@",contentDispositionValue);
NSDebugMLog(@"contentDispositionParams=%@",contentDispositionParams); NSDebugMLLog(@"requests",@"contentDispositionParams=%@",contentDispositionParams);
NSDebugMLog(@"aDoc allHeaders=%@",[aDoc allHeaders]); NSDebugMLLog(@"requests",@"aDoc allHeaders=%@",[aDoc allHeaders]);
NSDebugMLog(@"aDocContent class=%@",[aDocContent class]); NSDebugMLLog(@"requests",@"aDocContent class=%@",[aDocContent class]);
if ([contentDispositionValue isEqual:@"form-data"]) if ([contentDispositionValue isEqual:@"form-data"])
{ {
NSString* formDataName=[contentDispositionParams objectForKey:@"name"]; NSString* formDataName=[contentDispositionParams objectForKey:@"name"];
@ -1454,18 +1457,29 @@ method=%@, uri=%@, httpVersion=%@, headers=%@, content=%@, userInfo=%@, defaultF
NSDebugMLLog(@"requests",@"paramName=%@",paramName); NSDebugMLLog(@"requests",@"paramName=%@",paramName);
if (![paramName isEqualToString:@"name"]) if (![paramName isEqualToString:@"name"])
{ {
NSArray* previous=nil;
NSString* paramFormValueName=nil; NSString* paramFormValueName=nil;
id paramValue=nil; id paramValue=nil;
paramValue=[contentDispositionParams objectForKey:paramName]; paramValue=[contentDispositionParams objectForKey:paramName];
NSDebugMLLog(@"requests",@"paramValue=%@",paramValue); NSDebugMLLog(@"requests",@"paramValue=%@",paramValue);
paramFormValueName=[NSString stringWithFormat:@"%@.%@",formDataName,paramName]; paramFormValueName=[NSString stringWithFormat:@"%@.%@",formDataName,paramName];
NSDebugMLLog(@"requests",@"paramFormValueName=%@",paramFormValueName); NSDebugMLLog(@"requests",@"paramFormValueName=%@",paramFormValueName);
previous=[formValues objectForKey:paramFormValueName];
if (previous)
[formValues setObject:[previous arrayByAddingObject:paramValue]
forKey:paramFormValueName];
else
[formValues setObject:[NSArray arrayWithObject:paramValue] [formValues setObject:[NSArray arrayWithObject:paramValue]
forKey:paramFormValueName]; forKey:paramFormValueName];
}; };
}; };
if (aDocContent) if (aDocContent)
{ {
NSArray* previous=[formValues objectForKey:formDataName];
if (previous)
[formValues setObject:[previous arrayByAddingObject:aDocContent]
forKey:formDataName];
else
[formValues setObject:[NSArray arrayWithObject:aDocContent] [formValues setObject:[NSArray arrayWithObject:aDocContent]
forKey:formDataName]; forKey:formDataName];
}; };
@ -1476,7 +1490,7 @@ method=%@, uri=%@, httpVersion=%@, headers=%@, content=%@, userInfo=%@, defaultF
}; };
}; };
ASSIGN(_formValues,formValues); ASSIGN(_formValues,formValues);
NSDebugMLog(@"_formValues=%@",_formValues); NSDebugMLLog(@"requests",@"_formValues=%@",_formValues);
LOGObjectFnStop(); LOGObjectFnStop();
}; };

View file

@ -1,6 +1,6 @@
/** GSWRequestHandler.m - <title>GSWeb: Class GSWRequestHandler</title> /** GSWRequestHandler.m - <title>GSWeb: Class GSWRequestHandler</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Feb 1999 Date: Feb 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWResetButton.m - <title>GSWeb: Class GSWResetButton</title> /** GSWResetButton.m - <title>GSWeb: Class GSWResetButton</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,5 +1,6 @@
/** GSWResourceManager.m - <title>GSWeb: Class GSWResourceManager</title> /** GSWResourceManager.m - <title>GSWeb: Class GSWResourceManager</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc.
Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -28,7 +29,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -52,7 +55,7 @@ NSString* localNotFoundMarker=@"NOTFOUND";
NSBundle* mainBundle=nil; NSBundle* mainBundle=nil;
GSWDeployedBundle* deployedBundle=nil; GSWDeployedBundle* deployedBundle=nil;
GSWLogC("Start GSWResourceManager +initialize"); GSWLogC("Start GSWResourceManager +initialize");
if ((self=[[super superclass] initialize])) //if ((self=[[super superclass] initialize]))
{ {
NSString* bundlePath=nil; NSString* bundlePath=nil;
mainBundle=[GSWApplication mainBundle]; mainBundle=[GSWApplication mainBundle];
@ -61,7 +64,7 @@ NSString* localNotFoundMarker=@"NOTFOUND";
bundlePath=[mainBundle bundlePath]; bundlePath=[mainBundle bundlePath];
//NSDebugMLLog(@"resmanager",@"bundlePath:%@",bundlePath); //NSDebugMLLog(@"resmanager",@"bundlePath:%@",bundlePath);
printf("bundlePath:%s",[bundlePath lossyCString]); printf("bundlePath:%s",[bundlePath lossyCString]);
deployedBundle=[GSWDeployedBundle bundleWithPath:bundlePath]; deployedBundle=(GSWDeployedBundle*)[GSWDeployedBundle bundleWithPath:bundlePath];
//NSDebugMLLog(@"resmanager",@"deployedBundle:%@",deployedBundle); //NSDebugMLLog(@"resmanager",@"deployedBundle:%@",deployedBundle);
globalAppProjectBundle=[[deployedBundle projectBundle] retain]; globalAppProjectBundle=[[deployedBundle projectBundle] retain];
@ -96,8 +99,7 @@ NSString* localNotFoundMarker=@"NOTFOUND";
LOGObjectFnStart(); LOGObjectFnStart();
if ((self=[super init])) if ((self=[super init]))
{ {
//TODO //TODO NSBundle* mainBundle=[NSBundle mainBundle];
NSBundle* mainBundle=[NSBundle mainBundle];
NSArray* allFrameworks=[NSBundle allFrameworks]; NSArray* allFrameworks=[NSBundle allFrameworks];
int i=0; int i=0;
NSString* bundlePath=nil; NSString* bundlePath=nil;
@ -625,7 +627,7 @@ NSString* localNotFoundMarker=@"NOTFOUND";
stringsTable=[self lockedStringsTableWithName:aTableName stringsTable=[self lockedStringsTableWithName:aTableName
inFramework:aFrameworkName inFramework:aFrameworkName
language:aLanguage]; language:aLanguage];
else if (stringsTable==localNotFoundMarker) else if ((id)stringsTable==(id)localNotFoundMarker)
stringsTable=nil; stringsTable=nil;
NSDebugMLLog(@"resmanager",@"lockedCachedStringsTableNamed:%@ inFramework:%@ language:%@: %@", NSDebugMLLog(@"resmanager",@"lockedCachedStringsTableNamed:%@ inFramework:%@ language:%@: %@",
@ -653,7 +655,7 @@ NSString* localNotFoundMarker=@"NOTFOUND";
stringsTableArray=[self lockedStringsTableArrayWithName:aTableName stringsTableArray=[self lockedStringsTableArrayWithName:aTableName
inFramework:aFrameworkName inFramework:aFrameworkName
language:aLanguage]; language:aLanguage];
else if (stringsTableArray==localNotFoundMarker) else if ((id)stringsTableArray==(id)localNotFoundMarker)
stringsTableArray=nil; stringsTableArray=nil;
LOGObjectFnStop(); LOGObjectFnStop();
return stringsTableArray; return stringsTableArray;
@ -726,9 +728,8 @@ NSString* localNotFoundMarker=@"NOTFOUND";
stringsTable=[NSDictionary dictionaryWithContentsOfFile:path]; stringsTable=[NSDictionary dictionaryWithContentsOfFile:path];
if (!stringsTable) if (!stringsTable)
{ {
NSString* tmpString=[NSString stringWithContentsOfFile:path];
LOGSeriousError(@"Bad stringTable \n%@\n from file %@", LOGSeriousError(@"Bad stringTable \n%@\n from file %@",
tmpString, [NSString stringWithContentsOfFile:path],
path); path);
}; };
}; };
@ -737,7 +738,7 @@ NSString* localNotFoundMarker=@"NOTFOUND";
NSMutableDictionary* languageDict=nil; NSMutableDictionary* languageDict=nil;
if (!frameworkDict) if (!frameworkDict)
{ {
frameworkDict=[NSMutableDictionary dictionary]; frameworkDict=(NSMutableDictionary*)[NSMutableDictionary dictionary];
if (!aFrameworkName) if (!aFrameworkName)
aFrameworkName=@"";//Global aFrameworkName=@"";//Global
[_stringsTablesByFrameworkByLanguageByName setObject:frameworkDict [_stringsTablesByFrameworkByLanguageByName setObject:frameworkDict
@ -746,7 +747,7 @@ NSString* localNotFoundMarker=@"NOTFOUND";
languageDict=[frameworkDict objectForKey:aLanguage]; languageDict=[frameworkDict objectForKey:aLanguage];
if (!languageDict) if (!languageDict)
{ {
languageDict=[NSMutableDictionary dictionary]; languageDict=(NSMutableDictionary*)[NSMutableDictionary dictionary];
if (!aLanguage) if (!aLanguage)
aLanguage=@""; aLanguage=@"";
[frameworkDict setObject:languageDict [frameworkDict setObject:languageDict
@ -837,9 +838,8 @@ NSString* localNotFoundMarker=@"NOTFOUND";
stringsTableArray=[NSArray arrayWithContentsOfFile:path]; stringsTableArray=[NSArray arrayWithContentsOfFile:path];
if (!stringsTableArray) if (!stringsTableArray)
{ {
NSString* tmpString=[NSString stringWithContentsOfFile:path];
LOGSeriousError(@"Bad stringTableArray \n%@\n from file %@", LOGSeriousError(@"Bad stringTableArray \n%@\n from file %@",
tmpString, [NSString stringWithContentsOfFile:path],
path); path);
}; };
}; };
@ -848,7 +848,7 @@ NSString* localNotFoundMarker=@"NOTFOUND";
NSMutableDictionary* languageDict=nil; NSMutableDictionary* languageDict=nil;
if (!frameworkDict) if (!frameworkDict)
{ {
frameworkDict=[NSMutableDictionary dictionary]; frameworkDict=(NSMutableDictionary*)[NSMutableDictionary dictionary];
if (!aFrameworkName) if (!aFrameworkName)
aFrameworkName=@"";//Global aFrameworkName=@"";//Global
[_stringsTableArraysByFrameworkByLanguageByName setObject:frameworkDict [_stringsTableArraysByFrameworkByLanguageByName setObject:frameworkDict
@ -857,7 +857,7 @@ NSString* localNotFoundMarker=@"NOTFOUND";
languageDict=[frameworkDict objectForKey:aLanguage]; languageDict=[frameworkDict objectForKey:aLanguage];
if (!languageDict) if (!languageDict)
{ {
languageDict=[NSMutableDictionary dictionary]; languageDict=(NSMutableDictionary*)[NSMutableDictionary dictionary];
if (!aLanguage) if (!aLanguage)
aLanguage=@""; aLanguage=@"";
[frameworkDict setObject:languageDict [frameworkDict setObject:languageDict
@ -918,7 +918,7 @@ NSString* localNotFoundMarker=@"NOTFOUND";
path=[NSString stringWithFormat:@"ERROR_NOT_FOUND_framework_*%@*_filename_%@", path=[NSString stringWithFormat:@"ERROR_NOT_FOUND_framework_*%@*_filename_%@",
aFrameworkName, aFrameworkName,
resourceName]; resourceName];
url=[request _urlWithRequestHandlerKey:GSWResourceRequestHandlerKey[GSWebNamingConv] url=(NSString*)[request _urlWithRequestHandlerKey:GSWResourceRequestHandlerKey[GSWebNamingConv]
path:nil path:nil
queryString:[NSString stringWithFormat: queryString:[NSString stringWithFormat:
@"%@=%@", @"%@=%@",
@ -1099,9 +1099,7 @@ NSString* localNotFoundMarker=@"NOTFOUND";
int i=0; int i=0;
NSString* bundlePath=nil; NSString* bundlePath=nil;
NSBundle* tmpBundle=nil; NSBundle* tmpBundle=nil;
NSDictionary* infoDict=nil;
NSString* frameworkName=nil; NSString* frameworkName=nil;
GSWDeployedBundle* projectBundle=nil;
[allFrameworks addObjectsFromArray:[NSBundle allBundles]]; [allFrameworks addObjectsFromArray:[NSBundle allBundles]];
[allFrameworks autorelease]; [allFrameworks autorelease];
@ -1118,7 +1116,7 @@ NSString* localNotFoundMarker=@"NOTFOUND";
// NSDebugMLLog(@"resmanager",@"frameworkName=%@",frameworkName); // NSDebugMLLog(@"resmanager",@"frameworkName=%@",frameworkName);
if ([frameworkName isEqualToString:resourceName]) if ([frameworkName isEqualToString:resourceName])
{ {
bundle=[GSWDeployedBundle bundleWithPath:bundlePath]; bundle=(GSWDeployedBundle*)[GSWDeployedBundle bundleWithPath:bundlePath];
NSDebugMLLog(@"resmanager",@"bundle=%@",bundle); NSDebugMLLog(@"resmanager",@"bundle=%@",bundle);
/*projectBundle=[GSWProjectBundle projectBundleForProjectNamed:resourceName /*projectBundle=[GSWProjectBundle projectBundleForProjectNamed:resourceName
isFramework:YES]; isFramework:YES];
@ -1443,8 +1441,6 @@ NSString* localNotFoundMarker=@"NOTFOUND";
//OK //OK
NSString* type=nil; NSString* type=nil;
NSString* extension=nil; NSString* extension=nil;
NSDictionary* tmpMimeTypes=nil;
NSMutableDictionary* mimeTypes=[NSMutableDictionary dictionary];
LOGObjectFnStart(); LOGObjectFnStart();
NSDebugMLLog(@"resmanager",@"path=%@",path); NSDebugMLLog(@"resmanager",@"path=%@",path);
extension=[path pathExtension]; extension=[path pathExtension];
@ -1630,7 +1626,7 @@ NSString* localNotFoundMarker=@"NOTFOUND";
NSAssert(globalMimePListPathName,@"No resource MIME.plist"); NSAssert(globalMimePListPathName,@"No resource MIME.plist");
{ {
NSDictionary* tmpMimeTypes=nil; NSDictionary* tmpMimeTypes=nil;
NSMutableDictionary* mimeTypes=[NSMutableDictionary dictionary]; NSMutableDictionary* mimeTypes=(NSMutableDictionary*)[NSMutableDictionary dictionary];
LOGObjectFnStart(); LOGObjectFnStart();
tmpMimeTypes=[NSDictionary dictionaryWithContentsOfFile:globalMimePListPathName]; tmpMimeTypes=[NSDictionary dictionaryWithContentsOfFile:globalMimePListPathName];
// NSDebugMLLog(@"resmanager",@"tmpMimeTypes=%@",tmpMimeTypes); // NSDebugMLLog(@"resmanager",@"tmpMimeTypes=%@",tmpMimeTypes);
@ -1664,8 +1660,8 @@ NSString* localNotFoundMarker=@"NOTFOUND";
NSAssert(globalLanguagesPListPathName,@"No resource languages.plist"); NSAssert(globalLanguagesPListPathName,@"No resource languages.plist");
{ {
NSDictionary* tmpLanguages=nil; NSDictionary* tmpLanguages=nil;
NSMutableDictionary* ISO2GS=[NSMutableDictionary dictionary]; NSMutableDictionary* ISO2GS=(NSMutableDictionary*)[NSMutableDictionary dictionary];
NSMutableDictionary* GS2ISO=[NSMutableDictionary dictionary]; NSMutableDictionary* GS2ISO=(NSMutableDictionary*)[NSMutableDictionary dictionary];
LOGObjectFnStart(); LOGObjectFnStart();
tmpLanguages=[NSDictionary dictionaryWithContentsOfFile:globalLanguagesPListPathName]; tmpLanguages=[NSDictionary dictionaryWithContentsOfFile:globalLanguagesPListPathName];
NSDebugMLLog(@"resmanager",@"tmpLanguages=%@",tmpLanguages); NSDebugMLLog(@"resmanager",@"tmpLanguages=%@",tmpLanguages);

View file

@ -28,7 +28,9 @@
</license> </license>
**/ **/
static const char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,5 +1,6 @@
/** GSWResourceURL.m - <title>GSWeb: Class GSWResourceURL</title> /** GSWResourceURL.m - <title>GSWeb: Class GSWResourceURL</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc.
Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Sep 1999 Date: Sep 1999
@ -26,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -28,7 +28,9 @@
</license> </license>
**/ **/
static const char rcsId[]="$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -390,7 +392,7 @@ static NSArray* cacheControlHeaderValues=nil;
-(void)appendContentData:(NSData*)dataObject -(void)appendContentData:(NSData*)dataObject
{ {
unsigned char* bytes=NULL; const void* bytes=NULL;
unsigned int length=0; unsigned int length=0;
LOGObjectFnStart(); LOGObjectFnStart();
NSDebugMLLog(@"low",@"response=%p dataObject:%@",self,dataObject); NSDebugMLLog(@"low",@"response=%p dataObject:%@",self,dataObject);

View file

@ -27,7 +27,9 @@
</license> </license>
**/ **/
static const char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -28,7 +28,9 @@
</license> </license>
**/ **/
static const char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include <gnustep/base/GSCategories.h> #include <gnustep/base/GSCategories.h>
@ -465,7 +467,6 @@ static const char rcsId[] = "$Id$";
{ {
//OK //OK
NSString* sessionID=nil; NSString* sessionID=nil;
NSNotification* notification=nil;
LOGObjectFnStart(); LOGObjectFnStart();
_isTerminating=YES; _isTerminating=YES;
@ -1321,9 +1322,6 @@ fprintf(stderr,"session %p _releaseAutoreleasePool STOP\n",self);
GSWStatisticsStore* statisticsStore=nil; GSWStatisticsStore* statisticsStore=nil;
NSString* logFile=nil; NSString* logFile=nil;
GSWSession* session=nil; GSWSession* session=nil;
GSWComponent* page=nil;
NSString* pageName=nil;
NSString* description=nil;
GSWElement* pageElement=nil; GSWElement* pageElement=nil;
GSWComponent* pageComponent=nil; GSWComponent* pageComponent=nil;
LOGObjectFnStart(); LOGObjectFnStart();

View file

@ -28,7 +28,9 @@
</license> </license>
**/ **/
static const char rcsId[]="$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -28,7 +28,9 @@
</license> </license>
**/ **/
static const char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include "GSWSessionTimeOut.h" #include "GSWSessionTimeOut.h"

View file

@ -28,7 +28,9 @@
</license> </license>
**/ **/
static const char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include "GSWSessionTimeOut.h" #include "GSWSessionTimeOut.h"

View file

@ -94,7 +94,7 @@
timeInterval:(NSTimeInterval)timeInterval; timeInterval:(NSTimeInterval)timeInterval;
-(void)_updateDAStatisticsForActionNamed:(id)name -(void)_updateDAStatisticsForActionNamed:(id)name
timeInterval:(NSTimeInterval)timeInterval; timeInterval:(NSTimeInterval)timeInterval;
-(void)_sessionTerminating:(id)session; -(void)_sessionTerminating:(GSWSession*)session;
-(void)_applicationCreatedSession:(GSWSession*)session; -(void)_applicationCreatedSession:(GSWSession*)session;
-(void)_applicationDidHandleComponentActionRequest; -(void)_applicationDidHandleComponentActionRequest;
-(void)_applicationDidHandleComponentActionRequestInTimeInterval:(double)timeInterval; -(void)_applicationDidHandleComponentActionRequestInTimeInterval:(double)timeInterval;

View file

@ -1,6 +1,6 @@
/** GSWStatisticsStore.m - <title>GSWeb: Class GSWStatisticsStore</title> /** GSWStatisticsStore.m - <title>GSWeb: Class GSWStatisticsStore</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,10 +27,13 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include <sys/resource.h> #include <sys/resource.h>
#include <unistd.h>
//==================================================================== //====================================================================
@ -319,7 +322,7 @@ static char rcsId[] = "$Id$";
} }
else else
{ {
pageStats=[NSMutableDictionary dictionary]; pageStats=(NSMutableDictionary*)[NSMutableDictionary dictionary];
[_pagesStatistics setObject:pageStats [_pagesStatistics setObject:pageStats
forKey:aPage]; forKey:aPage];
AvgRespTimeValue=aTimeInterval; AvgRespTimeValue=aTimeInterval;
@ -366,7 +369,7 @@ static char rcsId[] = "$Id$";
}; };
//-------------------------------------------------------------------- //--------------------------------------------------------------------
-(void)_sessionTerminating:(id)aSession -(void)_sessionTerminating:(GSWSession*)aSession
{ {
//OK //OK
LOGObjectFnStart(); LOGObjectFnStart();

View file

@ -1,6 +1,6 @@
/** GSWStats.m - <title>GSWeb: Class GSWStats</title> /** GSWStats.m - <title>GSWeb: Class GSWStats</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWString.m - <title>GSWeb: Class GSWString</title> /** GSWString.m - <title>GSWeb: Class GSWString</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -1,6 +1,6 @@
/** GSWSubmitButton.m - <title>GSWeb: Class GSWSubmitButton</title> /** GSWSubmitButton.m - <title>GSWeb: Class GSWSubmitButton</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -27,7 +27,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -169,7 +171,7 @@ static char rcsId[] = "$Id$";
else else
{ {
// call awakeInContext when _element is sleeping deeply // call awakeInContext when _element is sleeping deeply
[element ensureAwakeInContext:context]; [(GSWComponent*)element ensureAwakeInContext:context];
/* /*
if (![_element context]) { if (![_element context]) {
NSDebugMLLog(@"gswdync",@"_element sleeps, awake it = %@",_element); NSDebugMLLog(@"gswdync",@"_element sleeps, awake it = %@",_element);
@ -199,7 +201,7 @@ static char rcsId[] = "$Id$";
} }
NS_ENDHANDLER; NS_ENDHANDLER;
//if (![context _wasActionInvoked] && [[[context elementID] parentElementIDString] compare:[context senderID]]!=NSOrderedAscending) //if (![context _wasActionInvoked] && [[[context elementID] parentElementIDString] compare:[context senderID]]!=NSOrderedAscending)
if (![context _wasActionInvoked] && [[[context elementID] parentElementIDString] isSearchOverForSenderID:[context senderID]]) if (![context _wasActionInvoked] && [(GSWElementIDString*)[[context elementID] parentElementIDString] isSearchOverForSenderID:[context senderID]])
{ {
LOGError(@"Action not invoked at the end of %@ (id=%@) senderId=%@", LOGError(@"Action not invoked at the end of %@ (id=%@) senderId=%@",
[self class], [self class],

View file

@ -1,5 +1,6 @@
/** GSWSwitchComponent.m - <title>GSWeb: Class GSWSwitchComponent</title> /** GSWSwitchComponent.m - <title>GSWeb: Class GSWSwitchComponent</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc.
Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999 Date: Jan 1999
@ -28,7 +29,9 @@
</license> </license>
**/ **/
static char rcsId[] = "$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"

View file

@ -30,7 +30,9 @@
</license> </license>
**/ **/
static const char rcsId[]="$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
@ -336,7 +338,9 @@ static const char rcsId[]="$Id$";
if (docTypeRangeEnd.length) { if (docTypeRangeEnd.length) {
if (docTypeRangeStart.location < docTypeRangeEnd.location) if (docTypeRangeStart.location < docTypeRangeEnd.location)
{ {
[_template setDocumentTypeString:[_string substringFromRange:NSMakeRange(docTypeRangeStart.location, [(GSWHTMLStaticGroup*)_template setDocumentTypeString:
[_string substringFromRange:
NSMakeRange(docTypeRangeStart.location,
docTypeRangeEnd.location - docTypeRangeStart.location + 1)]]; docTypeRangeEnd.location - docTypeRangeStart.location + 1)]];
} }
} }

View file

@ -1,6 +1,6 @@
/** GSWTemplateParserANTLR.h - <title>GSWeb: Class GSWTemplateParserANTLR</title> /** GSWTemplateParserANTLR.m - <title>GSWeb: Class GSWTemplateParserANTLR</title>
Copyright (C) 1999-2002 Free Software Foundation, Inc. Copyright (C) 1999-2003 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com> Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Mar 1999 Date: Mar 1999
@ -28,6 +28,10 @@
</license> </license>
**/ **/
#include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include "GSWTemplateParserANTLR.h" #include "GSWTemplateParserANTLR.h"
@ -90,28 +94,18 @@
{ {
LOGError(@"template named:%@ HTML Parse failed!",_templateName); LOGError(@"template named:%@ HTML Parse failed!",_templateName);
localException=ExceptionByAddingUserInfoObjectFrameInfo(localException,@"In [htmlParser document]... template named:%@ HTML Parse failed!",_templateName); localException=ExceptionByAddingUserInfoObjectFrameInfo(localException,@"In [htmlParser document]... template named:%@ HTML Parse failed!",_templateName);
[localException retain]; RETAIN(localException);
DESTROY(arpParse); DESTROY(arpParse);
[localException autorelease]; AUTORELEASE(localException);
[localException raise]; [localException raise];
} }
NS_ENDHANDLER; NS_ENDHANDLER;
NSDebugMLLog0(@"low",@"arpParse infos:\n");
#ifndef NDEBUG
if ([NSThread currentThread])
{
NSDebugMLLog(@"low",@"thread current_pool=%@",
[NSThread currentThread]->_autorelease_vars.current_pool);
NSDebugMLLog(@"low",@"thread current_pool _parentAutoreleasePool=%@",
[[NSThread currentThread]->_autorelease_vars.current_pool _parentAutoreleasePool]);
};
#endif
NSDebugMLLog0(@"low",@"DESTROY(arpParse)\n");
[htmlAST retain]; [htmlAST retain];
DESTROY(arpParse); DESTROY(arpParse);
arpParse=[NSAutoreleasePool new]; arpParse=[NSAutoreleasePool new];
[htmlAST autorelease]; [htmlAST autorelease];
NSDebugMLLog0(@"low",@"DESTROYED(arpParse)\n");
if (htmlAST) if (htmlAST)
{ {
_tagsNames=[[NSMutableDictionary dictionary] retain]; _tagsNames=[[NSMutableDictionary dictionary] retain];
@ -130,25 +124,18 @@
_templateName); _templateName);
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException, localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
@"In createElementsStartingWithAST..."); @"In createElementsStartingWithAST...");
RETAIN(localException);
DESTROY(arpParse);
AUTORELEASE(localException);
[localException raise]; [localException raise];
} }
NS_ENDHANDLER; NS_ENDHANDLER;
}; };
NSDebugMLLog0(@"low",@"ARP infos:\n");
#ifndef NDEBUG
if ([NSThread currentThread])
{
NSDebugMLLog(@"low",@"thread current_pool=%@",
[NSThread currentThread]->_autorelease_vars.current_pool);
NSDebugMLLog(@"low",@"thread current_pool _parentAutoreleasePool=%@",
[[NSThread currentThread]->_autorelease_vars.current_pool _parentAutoreleasePool]);
};
#endif
[elements retain]; [elements retain];
NSDebugMLLog0(@"low",@"DESTROY(arp)\n");
DESTROY(arpParse); DESTROY(arpParse);
NSDebugMLLog0(@"low",@"DESTROYED(arp)\n");
[elements autorelease]; [elements autorelease];
NSDebugMLLog0(@"low",@"Display Template\n"); NSDebugMLLog0(@"low",@"Display Template\n");
NSDebugMLLog(@"low",@"template named:%@ elements=%@", NSDebugMLLog(@"low",@"template named:%@ elements=%@",
_templateName, _templateName,
@ -206,22 +193,14 @@
LOGError(@"PARSE PB:[%@]",[anAST text]);//TODO LOGError(@"PARSE PB:[%@]",[anAST text]);//TODO
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException, localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
@"In [_tagParser tag]..."); @"In [_tagParser tag]...");
RETAIN(localException);
DESTROY(arpParse);
AUTORELEASE(localException);
[localException raise]; [localException raise];
} }
NS_ENDHANDLER; NS_ENDHANDLER;
NSDebugMLLog0(@"low",@"arpParse infos:\n");
#ifndef NDEBUG
if ([NSThread currentThread])
{
NSDebugMLLog(@"low",@"thread current_pool=%@",
[NSThread currentThread]->_autorelease_vars.current_pool);
NSDebugMLLog(@"low",@"thread current_pool _parentAutoreleasePool=%@",
[[NSThread currentThread]->_autorelease_vars.current_pool _parentAutoreleasePool]);
};
#endif
NSDebugMLLog0(@"low",@"DESTROY(arpParse)\n");
DESTROY(arpParse); DESTROY(arpParse);
NSDebugMLLog0(@"low",@"DESTROYED(arpParse)\n");
NSDebugMLLog(@"low",@"END PARSE:[%@]",[anAST text]); NSDebugMLLog(@"low",@"END PARSE:[%@]",[anAST text]);
@ -390,7 +369,7 @@
&& ![_associations objectForKey:_tagAttrKey]) && ![_associations objectForKey:_tagAttrKey])
{ {
if (!_addedAssoc) if (!_addedAssoc)
_addedAssoc=[NSMutableDictionary dictionary]; _addedAssoc=(NSMutableDictionary*)[NSMutableDictionary dictionary];
_tagAttrValue=[tagAttrs objectForKey:_tagAttrKey]; _tagAttrValue=[tagAttrs objectForKey:_tagAttrKey];
[_addedAssoc setObject:[GSWAssociation associationWithValue:_tagAttrValue] [_addedAssoc setObject:[GSWAssociation associationWithValue:_tagAttrValue]
forKey:_tagAttrKey]; forKey:_tagAttrKey];

View file

@ -30,7 +30,9 @@
</license> </license>
**/ **/
static const char rcsId[]="$Id$"; #include "config.h"
RCS_ID("$Id$")
#include "GSWeb.h" #include "GSWeb.h"
#include "GSWTemplateParserXML.h" #include "GSWTemplateParserXML.h"
@ -424,10 +426,7 @@ xmlParserInputPtr GSWTemplateParserSAXHandler_ExternalLoader(const char *systemI
externalContent=[NSString stringWithContentsOfFile:fileName]; externalContent=[NSString stringWithContentsOfFile:fileName];
if (externalContent) if (externalContent)
{ {
NSString* gswebTag=@"\n<!ELEMENT gsweb %Flow;> NSString* gswebTag=@"\n<!ELEMENT gsweb %Flow;>\n<!ATTLIST gsweb\n %attrs;\n >\n";
<!ATTLIST gsweb
%attrs;
>\n";
// name NMTOKEN; #IMPLIED // name NMTOKEN; #IMPLIED
NSDebugMLLog(@"GSWTemplateParser",@"gswebTag=\n%@",gswebTag); NSDebugMLLog(@"GSWTemplateParser",@"gswebTag=\n%@",gswebTag);
externalContent=[externalContent stringByAppendingString:gswebTag]; externalContent=[externalContent stringByAppendingString:gswebTag];
@ -673,7 +672,7 @@ static NSString* TabsForLevel(int level)
{ {
NSData* dataToParse=nil; NSData* dataToParse=nil;
NSString* xmlHeader=nil; NSString* xmlHeader=nil;
NSRange docTypeRange=NSMakeRange(NSNotFound,0); //NSRange docTypeRange=NSMakeRange(NSNotFound,0);
NSString* stringToParse=nil; NSString* stringToParse=nil;
NSString* encodingString=nil; NSString* encodingString=nil;
encodingString=[GSXMLParser xmlEncodingStringForStringEncoding:stringEncoding]; encodingString=[GSXMLParser xmlEncodingStringForStringEncoding:stringEncoding];
@ -1114,8 +1113,7 @@ text [Type:XML_TEXT_NODE] [{}] ####
//To know if it's an autoclose tag //To know if it's an autoclose tag
if (!children && [self isKindOfClass:[GSWTemplateParserXMLHTML class]]) if (!children && [self isKindOfClass:[GSWTemplateParserXMLHTML class]])
{ {
htmlElemDescPtr elemDscr=NULL; const htmlElemDesc* elemDscr=htmlTagLookup([nodeName lossyCString]);
elemDscr=htmlTagLookup([nodeName lossyCString]);
if (elemDscr if (elemDscr
&& elemDscr->endTag!=2 //Forbidden End Tag && elemDscr->endTag!=2 //Forbidden End Tag
&& elemDscr->endTag!=1) //End can be omitted && elemDscr->endTag!=1) //End can be omitted

Some files were not shown because too many files have changed in this diff Show more