Commit graph

403 commits

Author SHA1 Message Date
David Ayers
3fdb17626a * GSWeb.framework/GSWApplication+Defaults.m (TAKEVALUEFORKEY):
New macro to use new setValue:forKey: instead of takeValue:forKey:
        on Cocoa systems until it is implemented for GNUstep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20369 72102866-910b-0410-8b05-ffd578937521
2004-11-22 16:54:54 +00:00
David Ayers
c5ee2bd0bf * GSWeb.framework/GSWApplication.m (GSWApplicationMainReal):
Remove assertion for defined GNUSTEP_STRING_ENCODING.
        * GSWeb.framework/GSWDefaultAdaptorThread.m
        ([+sendResponse:toStream:
        withNamingConv:withAdditionalHeaderLines:withRemoteAddress:]):
        Use contentEncoding of response instead of
        NSISOLatin1StringEncoding.
        * GSWeb.framework/GSWHTMLComment.m ([-init]): Use
        +[GSWMessage defaultEncoding] instead of
        NSISOLatin1StringEncoding.
        * GSWeb.framework/GSWHTMLDynamicElement.m
        ([-addURL:forCIDKeyAssociation:CIDStoreAssociation:inContext:]):
        Use NSUnicodeStringEncoding instead NSISOLatin1StringEncoding
        for hash value.
        * GSWeb.framework/GSWMessage.m ([+initialize]): Set
        globalDefaultEncoding to NSISOLatin1StringEncoding only if
        WOStrictFlag default flag is set.  Otherwise default to
        GetDefEncoding().
        * GSWeb.framework/GSWRequest.m
        ([-_formValueEncodingFromFormData:]): Use +[GSWMessage
        defaultEncoding] instead of NSISOLatin1StringEncoding.
        ([-_formData], [-_getFormValuesFromMultipartFormDataOld]):
        Ditto.
        ([-_getFormValuesFromMultipartFormData]): Ditto.
        ([-_decodeMultipartBody:boundary:], -[_parseData:]): Ditto.
        * GSWeb.framework/GSWTemplateParserXML.m
        ([-templateElements]): Ditto.
        * GSWeb.framework/NSString+HTML.m (-[decodeURL]): Ditto.

        * INSTALL: Remove reference to GNUSTEP_STRING_ENCODING.
        * Examples/hello/HelloPage.gswc/HelloPage.gswi,
        * GSWExtensions.framework/French.lproj/
        GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.gswi,
        GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.gswi
        * GSWExtensions.framework/
        GSWCollapsibleComponentContent.gswc/GSWCollapsibleComponentContent.gswi
        GSWDictionaryRepetition.gswc/GSWDictionaryRepetition.gswi,
        GSWIFrame.gswc/GSWIFrame.gswi,
        GSWMetaRefresh.gswc/GSWMetaRefresh.gswi,
        GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.gswi,
        GSWRedirect.gswc/GSWRedirect.gswi,
        GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.gswi,
        GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.gswi
        GSWStatsPage.gswc/GSWStatsPage.gswi,
        GSWTable.gswc/GSWTable.gswi,
        GSWTableString.gswc/GSWTableString.gswi,
        Correct encoding declaration.

        * GSWExtensions.framework/
        GSWKeyValueConditional.gswc/GSWKeyValueConditional.gswd,
        GSWKeyValueConditional.gswc/GSWKeyValueConditional.gswi,
        GSWKeyValueConditional.gswc/GSWKeyValueConditional.html:
        Correct encoding declaration and line terminators.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20347 72102866-910b-0410-8b05-ffd578937521
2004-11-12 13:47:05 +00:00
David Ayers
63ad988273 * GSWeb.framework/GSWRepetition.h: Only use ASCII characters
in source files.
        * GSWeb.framework/NSString+HTML.m (initHtmlChars): Ditto


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20286 72102866-910b-0410-8b05-ffd578937521
2004-11-03 13:19:21 +00:00
David Ayers
0c4677e23a * Doc/GNUmakefile: New file.
* Doc/gsweb.gsdoc: Update DTD reference.  Minor reformatting.
        Add references to subprojects.  Add myself as coauthor.
        * GSWeb.framework/GNUmakefile: Remove duplicate definition of
        GSWeb_AGSDOC_FLAGS.

        * GSWeb.framework/GSWDebug.h (LOGDEEPClassFnStart)
        (LOGDEEPError0, LOGLOCKException0): Insert missing backslash.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20284 72102866-910b-0410-8b05-ffd578937521
2004-11-03 09:25:59 +00:00
David Ayers
5c7de0b8e0 * GSWeb.framework/GSWApplication+Defaults.m
(cgiAdaptorURL, setCGIAdaptorURL): Fix naming to conform to
        key value coding methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19972 72102866-910b-0410-8b05-ffd578937521
2004-09-02 12:38:45 +00:00
David Ayers
f09ed521ce * GSWeb.framework/GSWApplication+Defaults.m
(_lockDefaultEditingContext, _setLockDefaultEditingContext)
	(_allowsCacheControlHeader, _setAllowsCacheControlHeader)
	Fix naming to conform to key value coding methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19967 72102866-910b-0410-8b05-ffd578937521
2004-09-01 21:31:35 +00:00
David Ayers
8c78b8b4df * GSWeb.framework/GSWDeclarationParser.m:
(parseDeclarationString:named:inFrameworkNamed:): Use -base's
        version of md5 methods instead of adding gscrypt dependency.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19966 72102866-910b-0410-8b05-ffd578937521
2004-09-01 17:12:33 +00:00
Dave Wetzel
e756110959 added support for macOS X
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19964 72102866-910b-0410-8b05-ffd578937521
2004-09-01 16:12:58 +00:00
Manuel Guesdon
ad05010eab Typos & compilation fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19963 72102866-910b-0410-8b05-ffd578937521
2004-09-01 15:56:03 +00:00
Manuel Guesdon
3f274ff475 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19962 72102866-910b-0410-8b05-ffd578937521
2004-09-01 15:28:28 +00:00
Manuel Guesdon
7d73c85f1a o implemented -handleRequest
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19960 72102866-910b-0410-8b05-ffd578937521
2004-09-01 15:08:56 +00:00
Manuel Guesdon
9a55e9c9d2 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19959 72102866-910b-0410-8b05-ffd578937521
2004-09-01 15:06:30 +00:00
Manuel Guesdon
61eb42e27f o added GSWIntToString and GSWIntToNSString
o use GSWIntToNSString instead of string formatting


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19958 72102866-910b-0410-8b05-ffd578937521
2004-09-01 14:58:56 +00:00
Manuel Guesdon
819c2955dc o use GSWDeclarationFormatException instead of NSException
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19957 72102866-910b-0410-8b05-ffd578937521
2004-09-01 14:49:49 +00:00
Manuel Guesdon
bcd7d59217 o use GSWIntToNSString instead of string formatting
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19956 72102866-910b-0410-8b05-ffd578937521
2004-09-01 14:49:27 +00:00
Manuel Guesdon
e11d0c51d8 o use of IMPs for speed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19955 72102866-910b-0410-8b05-ffd578937521
2004-09-01 14:41:25 +00:00
Manuel Guesdon
ce45ebf3d4 o improved exceptions handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19954 72102866-910b-0410-8b05-ffd578937521
2004-09-01 14:28:01 +00:00
Manuel Guesdon
4d55d2617a o rewritten -deleteLastElementIDComponent and
-incrementLastElementIDComponent for speed
and memory usage improvement


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19953 72102866-910b-0410-8b05-ffd578937521
2004-09-01 14:27:26 +00:00
Manuel Guesdon
35bcbe49b7 o changes to use IMPs and buffers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19952 72102866-910b-0410-8b05-ffd578937521
2004-09-01 14:17:18 +00:00
Manuel Guesdon
8557cf3eba o changes to use IMPs and buffers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19951 72102866-910b-0410-8b05-ffd578937521
2004-09-01 13:58:47 +00:00
Manuel Guesdon
6aaf57213f o added -addQueryOperator:forKey:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19950 72102866-910b-0410-8b05-ffd578937521
2004-09-01 13:57:56 +00:00
Manuel Guesdon
009ad97ccd o use GSWIntToNSString instead of string formatting
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19949 72102866-910b-0410-8b05-ffd578937521
2004-09-01 13:53:24 +00:00
Manuel Guesdon
4a0617e007 o added exception names constants
o added GSWDeclarationFormatException
o added declaration caching (work in progress)
o use GSWDeclarationFormatException instead of NSException


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19948 72102866-910b-0410-8b05-ffd578937521
2004-09-01 13:52:44 +00:00
Manuel Guesdon
745cc96e55 o logs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19947 72102866-910b-0410-8b05-ffd578937521
2004-09-01 13:51:59 +00:00
David Ayers
e6482533ee * GSWeb.framework/GSWApplication+Defaults.m
(GSWeb_InitializeGlobalAppDefaultOptions): Shorten and make
	more readable via local LOGOPT and LOGOPT_NC macro.
	(NSUSERDEFAULTS, INIT_DFLT_OBJ, INIT_DFLT_BOOL, INIT_DFLT_INT)
	(INIT_DFLT_FLT): New macros.
	(globalAppDefaultOptions): Make static.
	(_userDefaults): New static local.
	(GSWeb_ApplicationDebugSetChange): Remove NDEBUG conditional
	compile.
	(_dflt_*, _dflt_init_*): New static variables to cache default
	values.
	(set/getDefaultValues): Use new macros and static variables.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19937 72102866-910b-0410-8b05-ffd578937521
2004-08-29 16:37:21 +00:00
David Ayers
8569f10e6c * GSWeb.framework/GNUmakefile: Add GSWApplication+Defaults.m.
* GSWeb.framework/GSWApplication.m:
        (globalAppDefaultOptions, WOStrictFlag)
        (GSWeb_ApplicationDebugSetChange,
        * GSWApplicationSetDebugSetOption)
        (GSWeb_AdjustVolatileNSArgumentDomain)
        (GSWeb_InitializeGlobalAppDefaultOptions)
        (GSWeb_InitializeDebugOptions)
        (GSWeb_DestroyGlobalAppDefaultOptions)
        ((GSWApplicationDefaults), (UserDefaults)): Move from here to...
        * GSWeb.framework/GSWApplication+Defaults.m: ... here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19931 72102866-910b-0410-8b05-ffd578937521
2004-08-28 12:00:03 +00:00
David Ayers
24679f8730 * GSWeb.framework/GSWApplication.h
* GSWeb.framework/GSWApplication.m: Prepare split off of
        GSWApplication+Defaults.m.
        (_initAdaptorsWithUserDefaults:, _argsDictionaryWithUserDefaults:)
        (_initRegistrationDomainDefaults, _initUserDefaultsKeys)
        Move from main method list to GSWApplicationDefaults category.
        (setContextClassName:, contextClassName, setResponseClassName:)
        (responseClassName, setRequestClassName:, requestClassName)
        Move from GSWApplicationE to GSWApplicationDefaults category.
        (GSWApplicationSetDebugSetOption): Move to bottom.
        (GSWeb_ApplicationDebugSetChange): Rename from
        GSWebApplicationDebugSetChange and move to bottom.
        (GSWeb_AdjustVolatileNSArgumentDomain)
        (GSWeb_InitializeGlobalAppDefaultOptions)
        (GSWeb_InitializeDebugOptions)
        (GSWeb_DestroyGlobalAppDefaultOptions): New private functiions
        by extracting old code.
        (GSWApplicationMainReal): Use new extracted functions.  Minor
        reformatting.
        ([+dealloc]): Use new extracted functions.
        ([-createRequestWithMethod:uri:httpVersion:]) Use new name for
        GSWeb_ApplicationDebugSetChange.
        ((UserDefaults)): Move entire Category to the bottom.

        ([-lockedInitComponentBearingFrameworksFromBundleArray]):
	Comment unused variable to avoid warning.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19930 72102866-910b-0410-8b05-ffd578937521
2004-08-28 11:17:33 +00:00
Dave Wetzel
a6d04c504d added -(BOOL)isDebuggingEnabled
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19530 72102866-910b-0410-8b05-ffd578937521
2004-06-15 23:11:51 +00:00
Dave Wetzel
f87efed053 Optimized based on Manuel's code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19529 72102866-910b-0410-8b05-ffd578937521
2004-06-15 22:48:30 +00:00
David Ayers
dafbed7200 Fix spacing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19526 72102866-910b-0410-8b05-ffd578937521
2004-06-15 14:28:51 +00:00
David Ayers
c5a9ab74ec * GSWeb.framework/GSWDeclarationParser.m (-[tryParseBoolean]):
Make more robust and allow upper and lower case variants and
        single letter variants of both YES/NO and true/false.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19525 72102866-910b-0410-8b05-ffd578937521
2004-06-15 12:01:33 +00:00
David Ayers
c7b9ac28c3 * GSWeb.framework/GSUtils.m (boolValueWithDefaultFor): Do not
reimplement defaults bool evaluation semantics differently
        from -base / Foundation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19520 72102866-910b-0410-8b05-ffd578937521
2004-06-15 10:06:41 +00:00
David Ayers
3a75b5243f Fix spacing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19512 72102866-910b-0410-8b05-ffd578937521
2004-06-13 22:14:51 +00:00
Dave Wetzel
d9dae26eb4 added setString: (original code from Philip Moetteli, debugged with David Ayers)
tested on MacOSX with Apple Foundation


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19511 72102866-910b-0410-8b05-ffd578937521
2004-06-13 22:05:52 +00:00
Dave Wetzel
292a84f4b4 in appendContentString: append string only if not nil (patch from Philip Moetteli)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19510 72102866-910b-0410-8b05-ffd578937521
2004-06-13 19:30:05 +00:00
Dave Wetzel
6bf313a187 supports 'true' and 'false' now. Will be transformed into YES and NO
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19438 72102866-910b-0410-8b05-ffd578937521
2004-06-01 22:41:43 +00:00
Dave Wetzel
a2f820f664 Support true/false in addition to YES/NO in bool bindings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19383 72102866-910b-0410-8b05-ffd578937521
2004-05-21 20:31:30 +00:00
David Ayers
3b1ee04d74 * GSWeb.framework/GSWUtils.h/m: (struct proc_s, proc_t): Removed.
(pidstat, pidstatm, pidproccontent): Removed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19367 72102866-910b-0410-8b05-ffd578937521
2004-05-18 09:45:21 +00:00
David Ayers
41c36413c4 * GSWeb.framework/GSWProcFS.h/m: Make class more portable.
Replace all system dependent types with standard types.
        Replace usage of NSDebugFLog with NSDebugMLog in methods.
        ([GSWProcFSProcInfo filledProcInfo]): Use -processIdentifier
        instead of getpid.
        ([GSWProcFSProcInfo filledProcInfoWithPID:]): Update
        types. Use standard GC macro.
        ([GSWProcFSProcInfo initFilledWithPID:]): Update types.
        ([GSWProcFSProcInfo description]): Use NSPageSize instead of
        getpagesize.  Remove obsolete casts.
        ([GSWProcFSProcInfo contentOfProcFile:]): Use standard
        NSString API to read the file.
        ([GSWProcFSProcInfo contentOfPIDFile:]): Adapt to new types
        and reformat.
        ([GSWProcFSProcInfo residentMemory]),
        ([GSWProcFSProcInfo sharedMemory]): Adapt to new types.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19366 72102866-910b-0410-8b05-ffd578937521
2004-05-18 09:11:13 +00:00
David Ayers
c22184bb50 * config.mak.in: Replace LIBWRAP with AUX_LIBS so that they
will be included in gsweb.make makefile fragment.
	* configure.ac: Fine tune check to test whether we need
	libnsl.
	* GSWeb.framework/gsweb.gsdoc: Remove obsolete documentation
	of libwrap realted build option.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19355 72102866-910b-0410-8b05-ffd578937521
2004-05-16 19:24:27 +00:00
Dave Wetzel
c34297814e removed HasGSWComponents lookup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19354 72102866-910b-0410-8b05-ffd578937521
2004-05-16 18:29:20 +00:00
David Ayers
477c429eca * GSWeb.framework/GSWAction.m,
* GSWeb.framework/GSWApplication.m,
	* GSWeb.framework/GSWDirectAction.m,
	* GSWeb.framework/GSWSession.m,
	* GSWeb.framework/GSWTemplateParser.m: Do not initialize
	va_list	with NULL.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19352 72102866-910b-0410-8b05-ffd578937521
2004-05-16 15:57:09 +00:00
Dave Wetzel
ff7a27f73e removed printfs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19346 72102866-910b-0410-8b05-ffd578937521
2004-05-16 10:12:08 +00:00
David Ayers
5966661c93 * GSWeb.framework/GNUmakefile: Make GSWDefines.h a public
header.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19345 72102866-910b-0410-8b05-ffd578937521
2004-05-16 08:24:56 +00:00
Manuel Guesdon
87977f0783 o fixed -isImplementedForComponent
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19319 72102866-910b-0410-8b05-ffd578937521
2004-05-14 12:09:16 +00:00
Manuel Guesdon
fe68350adf o added dateFormat__AltKey
o added numberFormat__AltKey


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19318 72102866-910b-0410-8b05-ffd578937521
2004-05-14 12:08:52 +00:00
Manuel Guesdon
00632e1887 o added -urlApplicationNumber
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19317 72102866-910b-0410-8b05-ffd578937521
2004-05-14 12:02:35 +00:00
Manuel Guesdon
f04c972cb8 o logs
o urlPrefix fix
o application instance fix for distribution
o fix in -_synchronizeForDistribution


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19316 72102866-910b-0410-8b05-ffd578937521
2004-05-14 12:02:12 +00:00
Manuel Guesdon
bb270c231d o logs
o fixes in -invokeActionForRequest:inContext:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19315 72102866-910b-0410-8b05-ffd578937521
2004-05-14 12:01:34 +00:00
Manuel Guesdon
db170747b4 o logs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19314 72102866-910b-0410-8b05-ffd578937521
2004-05-14 12:00:56 +00:00
Manuel Guesdon
6715dd175f o fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19313 72102866-910b-0410-8b05-ffd578937521
2004-05-14 11:47:28 +00:00
Manuel Guesdon
aa263b60b2 o cleaned
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19312 72102866-910b-0410-8b05-ffd578937521
2004-05-14 11:47:06 +00:00
Manuel Guesdon
dc9f1ff69e o handle dateFormat and numberFormat Alt Keys
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19311 72102866-910b-0410-8b05-ffd578937521
2004-05-14 11:46:31 +00:00
Manuel Guesdon
cca0554649 o fix for .strings loading
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19310 72102866-910b-0410-8b05-ffd578937521
2004-05-14 11:45:04 +00:00
Manuel Guesdon
b166da68d3 o fix for defaultActionClass
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19309 72102866-910b-0410-8b05-ffd578937521
2004-05-14 11:43:47 +00:00
Manuel Guesdon
235194cac5 o fixed exception format/arguments in
-parser:didParseClosingDynamicTagOfType:withTemplateInfo:
o added templateInfo in -parseHTML Exception


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19308 72102866-910b-0410-8b05-ffd578937521
2004-05-14 11:43:06 +00:00
David Ayers
c2b2b88402 * GSWeb.framework/NSString+HTML.m: Include limits.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19248 72102866-910b-0410-8b05-ffd578937521
2004-05-06 14:03:34 +00:00
David Ayers
fa6af67346 * GSWeb.framework/GSWDefines.h: New file.
* GSWeb.framework/GSWeb.h: Include GSWDefines.h.

        * GSWeb.framework/GSWApplication.h: Use GSW_EXPORT instead of
        export.  Fixed some whitespace issues.
        * GSWeb.framework/GSWBaseParser.h: Ditto.
        * GSWeb.framework/GSWConstants.h: Ditto.
        * GSWeb.framework/GSWDebug.h: Ditto.
        * GSWeb.framework/GSWDefaultAdaptor.h: Ditto.
        * GSWeb.framework/GSWElement.h: Ditto.
        * GSWeb.framework/GSWHTMLAttrLexer.h: Ditto.
        * GSWeb.framework/GSWHTMLAttrParser.h: Ditto.
        * GSWeb.framework/GSWHTMLLexer.h: Ditto.
        * GSWeb.framework/GSWHTMLParser.h: Ditto.
        * GSWeb.framework/GSWPageDefLexer.h: Ditto.
        * GSWeb.framework/GSWPageDefParser.h: Ditto.
        * GSWeb.framework/GSWResourceManager.h: Ditto.
        * GSWeb.framework/GSWUtils.h: Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19247 72102866-910b-0410-8b05-ffd578937521
2004-05-06 13:57:00 +00:00
David Ayers
a15ae8caa7 * GSWeb.framework/GSWSession.h/m
([GSWSession permanentPageCacheSize], [GSWSession pageCacheSize]):
        Replace uint with unsigned int.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19246 72102866-910b-0410-8b05-ffd578937521
2004-05-06 13:55:49 +00:00
David Ayers
1fe33a8239 * GSWeb.framework/GSWDefaultAdaptor.m: Whitespace update.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19245 72102866-910b-0410-8b05-ffd578937521
2004-05-06 12:53:22 +00:00
David Ayers
1262062463 * GSWExtensions.framework/GSWKeyValueConditional.m
([GSWKeyValueConditional condition]): Declare all variables at
        top of block to be able to compile with gcc 2.95.
        * GSWeb.framework/GSWBaseParser.m
        (_ParserDebugLogBuffer):Ditto.
        * GSWeb.framework/GSWDisplayGroup.m
        ([GSWDisplayGroup _deleteObjects]),
        ([GSWDisplayGroup displayBatchContainingSelectedObject]),
        ([GSWDisplayGroup setDefaultStringMatchFormat:]),
        ([GSWDisplayGroup _setUpForNewDataSource]): Ditto.
        * GSWeb.framework/GSWHTMLDynamicElement.m
        ([GSWHTMLDynamicElement
        computeActionStringWithActionClassAssociation:
        directActionNameAssociation:pathQueryDictionaryAssociation:
        otherPathQueryAssociations:inContext:]): Ditto.
        * GSWeb.framework/GSWHTMLRawParser.m
        ([GSWHTMLRawParser
        tagPropertiesForType:betweenIndex:andIndex:]),
        ([GSWHTMLRawParser parseHTML]): Ditto.
        * GSWeb.framework/GSWRequest.m
        ([GSWRequest valuesFromHeaderString:], [GSWRequest initWithString:]),
        ([GSWRequest cookies]): Ditto.
        * GSWeb.framework/GSWStatisticsStore.m
        ([GSWStatisticsStore _sessionTerminating:]): Ditto.
        * GSWeb.framework/GSWTemporaryElement.m
        ([GSWTemporaryElement _elementWithDeclaration:name:properties:
        template:languages:]): Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19171 72102866-910b-0410-8b05-ffd578937521
2004-04-22 12:08:29 +00:00
David Ayers
49f65e75a7 * GSWeb.framework/GSWDisplayGroup.m:
([GSWDisplayGroup init]): Set fetchesOnLoad to YES by default.
        Reported by S.J. Chun <chunsj@embian.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19157 72102866-910b-0410-8b05-ffd578937521
2004-04-20 10:29:08 +00:00
David Ayers
6094776767 * gsweb.make.in: Remove GSANTLR dependency.
* GSWExtensions.framework/Makefile.preamble: Ditto.
        * GSWExtensionsGSW.framework/Makefile.preamble: Ditto.

        * GSWeb.framework/Makefile.preamble.in: Move AUX_LIBS to the
        bottom so that the linker on Darwin can deal with the static
        library.

        * GSWExtensions.framework/GSWKeyValueConditional.h: Remove
        include currently redundant for the include mechanism and
        causing warnings to gswnames=wo.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19106 72102866-910b-0410-8b05-ffd578937521
2004-04-14 17:11:56 +00:00
Manuel Guesdon
714083cdbd *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19053 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:18:33 +00:00
Manuel Guesdon
9b4e247f70 o removed GSANTLR dependency
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19052 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:17:57 +00:00
Manuel Guesdon
9b198f4fe6 o removed references to ANTLR
o removed #include "GSWTemplateParserXML.h"
o removed #include "GSWTemplateParserANTLR.h"
o removed ANTLR and XML parsers handling in
+templateParserTypeFromString: Emit warning for
ANTLR/XML case
o cleaned +templateWithHTMLString:declarationString:languages:
o removed ANTLR and XML parsers handling in
+templateNamed:inFrameworkNamed:...
Emit warning for ANTLR/XML case
o code cleaning


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19051 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:17:41 +00:00
Manuel Guesdon
274e37f708 o removed #include "GSWHTMLLexer.h"
o removed #include "GSWHTMLParser.h"
o removed #include "GSWHTMLParserExt.h"


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19050 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:17:22 +00:00
Manuel Guesdon
385933c03a o removed GSWHTMLParser.m
o removed GSWHTMLParserExt.m
o removed GSWHTMLLexer.m
o removed GSWHTMLAttrLexer.m
o removed GSWHTMLAttrParser.m
o removed GSWHTMLAttrParserExt.m
o removed GSWTemplateParserANTLR.m
o removed GSWTemplateParserXML.m
o removed GSWHTMLAttrLexer.h
o removed GSWHTMLAttrParser.h
o removed GSWHTMLAttrParserExt.h
o removed GSWHTMLAttrTokenTypes.h
o removed GSWHTMLLexer.h
o removed GSWHTMLParser.h
o removed GSWHTMLParserExt.h
o removed GSWHTMLTokenTypes.h
o removed GSWTemplateParserANTLR.h
o removed GSWTemplateParserXML.h


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19049 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:17:04 +00:00
Manuel Guesdon
b01facf806 o replaced -definitionName call by -declarationName
o replaced -setDefinitionName -setDeclarationName


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19048 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:16:34 +00:00
Manuel Guesdon
6a21e8b0a5 o replaced -definitionName call by -declarationName
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19047 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:15:53 +00:00
Manuel Guesdon
f5304e84b1 o added GSWOPTVALUE_AllowsCacheControlHeader
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19045 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:13:55 +00:00
Manuel Guesdon
7fac49567c o added GSWHTTPHeader_LoadAverage
o added GSWHTTPHeader_RefuseSessions
o added AllowsCacheControlHeader


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19044 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:13:35 +00:00
Manuel Guesdon
81a1cd8f55 o added -_refuseNewSessionsTimeInterval
o added +_setAllowsCacheControlHeader:
o added +_allowsCacheControlHeader


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19043 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:13:07 +00:00
Manuel Guesdon
ff96e28f34 o finalize -_handleRequest:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19042 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:12:35 +00:00
Manuel Guesdon
864cbfbab0 o raise exception if empty keyPath in +setValue:inObject:forKeyPath:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19041 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:11:43 +00:00
Manuel Guesdon
94eccc5e54 o finalized -disableClientCaching
o in -_finalizeInContext: add load info to headers
o in -_finalizeInContext: new session refusing info


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19040 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:11:22 +00:00
Manuel Guesdon
5f4981dbf6 o implemented -debugWithFormat:
o implemented -_debugWithString:
o Manage termination in -appendCookieToResponse:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19039 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:10:11 +00:00
Manuel Guesdon
9824a6b8df o fixed exception format/arguments problem reported
by David Ayers  <d.ayers@inode.at>
in _skipQuotedStringWithQuote:index:stopIndex:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19038 72102866-910b-0410-8b05-ffd578937521
2004-04-06 11:09:27 +00:00
David Ayers
1168aa1c1e * GSWeb.framework/GSWHTMLRawParser.m
([GSWHTMLRawParser _skipQuotedStringWithQuote:index:stopIndex:]):
        Use decimal instead of object format specifier.  Reformat.

        * GSWeb.framework/GSWTemplateParser.m:
        ([GSWTemplateParser parseDeclarations]): Test
        _declarationsFilePath before inserting it into a mutable set.
        Reformat.

        * GSWeb.framework/GSWDefaultAdaptor.m
        ([GSWDefaultAdaptor announceNewConnection:]):  Fix for
        WorkerThreadCount 0.

        * GSWeb.framework/GSWResourceManager.m
        ([GSWResourceManager _applicationGSWBundle]): Use self instead
        of NSClassFromString to obtain correct class for WO namespace.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19001 72102866-910b-0410-8b05-ffd578937521
2004-04-02 11:06:46 +00:00
Manuel Guesdon
988d241ad3 2004-03-26 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWAction.m/.h:
	       o added -isActionNamed:
	       * GSWeb.framework/GSWDirectAction.m
		 o in -performActionNamed:, raise exception if method
		 is not found
		 *
		 GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
2004-03-26   Manuel Guesdon <mguesdon@orange-concept.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18922 72102866-910b-0410-8b05-ffd578937521
2004-03-26 10:30:26 +00:00
Manuel Guesdon
c0bef0989c o added -isActionNamed:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18920 72102866-910b-0410-8b05-ffd578937521
2004-03-26 10:28:46 +00:00
Manuel Guesdon
804bc34051 o in -performActionNamed:, raise exception if method is not found
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18919 72102866-910b-0410-8b05-ffd578937521
2004-03-26 10:28:19 +00:00
Manuel Guesdon
477f1de1e4 o fixed WO_TAG_LENGTH
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18918 72102866-910b-0410-8b05-ffd578937521
2004-03-26 10:27:43 +00:00
Manuel Guesdon
e487aeedf9 * GSWSession.m/.h:
o added private methods
	    o implemented -copy


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18917 72102866-910b-0410-8b05-ffd578937521
2004-03-26 10:27:20 +00:00
Manuel Guesdon
8c581b7c70 * GSWeb.framework/GNUmakefile
o added new files
  o removed old files
  o moved some files


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18910 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:41:54 +00:00
Manuel Guesdon
9146bde527 * GSWeb.framework/GSWeb.h:
o added includes for new files
  o removed includes for removed files


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18909 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:36:51 +00:00
Manuel Guesdon
472a1a279d * GSWeb.framework/GSWTemplateParserXML.m:
o renamed defintions* to declarations*
  o replaced GSWPageDefElement by GSWDeclaration


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18908 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:36:23 +00:00
Manuel Guesdon
db19cd7d25 * GSWeb.framework/GSWTemplateParserANTLR.h:
o removed GSWPageDef* includes
* GSWeb.framework/GSWTemplateParserANTLR.m:
  o renamed defintions* to declarations*
  o replaced GSWPageDefElement by GSWDeclaration


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18907 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:36:00 +00:00
Manuel Guesdon
e6cfbc462a * GSWeb.framework/GSWTemplateParser.h/.m:
o multiple changes to support RawHTML parser and new
  declarations parser


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18906 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:35:25 +00:00
Manuel Guesdon
890ad2da60 * GSWeb.framework/GSWHTMLStaticGroup.m/.h:
o added +elementWithContentElements:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18905 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:35:00 +00:00
Manuel Guesdon
48c3a00d54 * GSWeb.framework/GSWHTMLDynamicElement.m:
o fixed bug in -initWithName:attributeAssociations:contentElements:
  for associationValue quoting


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18904 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:34:34 +00:00
Manuel Guesdon
0735e5ab7c * GSWeb.framework/GSWHTMLBareString.h/.m:
o cleaned
  o remove _data and _encoding


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18903 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:34:10 +00:00
Manuel Guesdon
ac1b6eee6f * GSWeb.framework/GSWElement.h/.m:
o renamed definitionName to declarationName


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18902 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:33:43 +00:00
Manuel Guesdon
23b3bc23ca * GSWeb.framework/GSWBundle.m:
o renamed GSWComponentDefinition* to GSWComponentDeclarations*


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18901 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:33:12 +00:00
Manuel Guesdon
27b2cc5562 * GSWeb.framework/GSWConfig.h:
o added GSWOPTVALUE_DisplayExceptionPages
  o changed default template parser to RawHTML


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18897 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:31:16 +00:00
Manuel Guesdon
c0040d24f6 * GSWeb.framework/GSWConstants.h/.m:
o added GSWOPT_DisplayExceptionPages
  o renamed GSWComponentDefinition* into GSWComponentDeclarations*
  o added GSWOPTValue_DefaultTemplateParser_RawHTML


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18896 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:30:51 +00:00
Manuel Guesdon
cf7d8e18db * GSWeb.framework/GSWDirectActionRequestHandler.h/.m:
o added -generateRequestRefusalResponseForRequest:
  o added -generateErrorResponseWithException:inContext:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18895 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:30:18 +00:00
Manuel Guesdon
166ae05241 * GSWeb.framework/GSWApplication.h/.m:
o added -handleActionRequestErrorWithRequest:exception:reason:
    requestHanlder:actionClassName:actionName:actionClass:
    actionObject:
  o added +defaultDisplayExceptionPages
  o added +setDefaultDisplayExceptionPages:
  o handle GSWDefaultDisplayExceptionPages


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18894 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:29:41 +00:00
Manuel Guesdon
164d631158 * GSWeb.framework/GSWHTMLURLValuedElement.m:
o fix in -appendURLToResponse:inContext: when we have key and
    filename binding (Stephane Corthesy <stephane@sente.ch>
    and Philip Motteli <Philip.Moetteli@tele2.ch>)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18893 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:29:00 +00:00
Manuel Guesdon
4d3f7c238a * GSWeb.framework/GSWActionRequestHandler.m:
o -_handleRequest: partially rewritten for exception handling


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18892 72102866-910b-0410-8b05-ffd578937521
2004-03-25 08:27:29 +00:00