Commit graph

611 commits

Author SHA1 Message Date
dwetzel
c81e5f5d65 some minor speed improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20381 72102866-910b-0410-8b05-ffd578937521
2004-11-26 11:02:53 +00:00
dwetzel
cdcd073840 removed Start HandleTimer / Stop HandleTimer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20375 72102866-910b-0410-8b05-ffd578937521
2004-11-24 12:57:32 +00:00
ayers
a74f05021b * 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
ayers
1f7174cf10 * 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
mguesdon
427efe3c07 Changes in GSWAdaptor:
o to handle unavailableUntil configuration parameters
o to better handle templates


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20317 72102866-910b-0410-8b05-ffd578937521
2004-11-08 14:15:59 +00:00
ayers
9e5e84d05b * Examples/WebBookStore1: New example.
* Examples/WebBookStore1/Application.h,
        * Examples/WebBookStore1/Application.m,
        * Examples/WebBookStore1/DirectAction.h,
        * Examples/WebBookStore1/DirectAction.m,
        * Examples/WebBookStore1/GNUmakefile,
        * Examples/WebBookStore1/Main.h,
        * Examples/WebBookStore1/Main.m,
        * Examples/WebBookStore1/Session.h,
        * Examples/WebBookStore1/Session.m,
        * Examples/WebBookStore1/WebBookStore1_main.m,
        * Examples/WebBookStore1/BookStore.eomodeld/Author.plist,
        * Examples/WebBookStore1/BookStore.eomodeld/Book.plist,
        * Examples/WebBookStore1/BookStore.eomodeld/Customer.plist,
        * Examples/WebBookStore1/BookStore.eomodeld/Order.plist,
        * Examples/WebBookStore1/BookStore.eomodeld/OrderPos.plist,
        * Examples/WebBookStore1/BookStore.eomodeld/index.eomodeld,
        * Examples/WebBookStore1/Main.gswc/Main.gswd,
        * Examples/WebBookStore1/Main.gswc/Main.gswi,
        * Examples/WebBookStore1/Main.gswc/Main.html,
        * Examples/WebBookStore1/WebServerResources/Insert.png,
        * Examples/WebBookStore1/WebServerResources/Save.png,
        * Examples/WebBookStore1/WebServerResources/Delete.png,
        * Examples/WebBookStore1/WebServerResources/CreateTables.png,
        * Examples/WebBookStore1/WebServerResources/DropTables.png:
        New files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20316 72102866-910b-0410-8b05-ffd578937521
2004-11-08 13:14:12 +00:00
ayers
dc31139434 * 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
ayers
49969676a3 * 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
ayers
c1b70dad48 * 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
ayers
15ffb2dc9c * 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
ayers
09d37d0467 * 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
dwetzel
a97e1a2a61 added David Ayers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19965 72102866-910b-0410-8b05-ffd578937521
2004-09-01 16:14:22 +00:00
dwetzel
912b8cc6f5 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
mguesdon
f5270aed7d 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
mguesdon
bb7b8c6e63 *** 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
mguesdon
bb4383fad3 2004-09-01 Manuel Guesdon <mguesdon@orange-concept.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19961 72102866-910b-0410-8b05-ffd578937521
2004-09-01 15:12:56 +00:00
mguesdon
e891319f78 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
mguesdon
699a558281 *** 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
mguesdon
a1cc027ccb 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
mguesdon
12bc922120 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
mguesdon
0963016bcd 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
mguesdon
b8fe598297 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
mguesdon
8f4fe72e92 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
mguesdon
a8f85a3ec1 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
mguesdon
fe146dbe3c 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
mguesdon
0253d2f23f 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
mguesdon
ea7b7b8821 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
mguesdon
9975463973 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
mguesdon
b6af0e7fe4 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
mguesdon
5ebcdf995d 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
mguesdon
e1d304e334 o fix keys array end
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19946 72102866-910b-0410-8b05-ffd578937521
2004-09-01 13:46:15 +00:00
mguesdon
db16f6d299 o added ShouldDisplay
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19945 72102866-910b-0410-8b05-ffd578937521
2004-09-01 13:45:38 +00:00
mguesdon
96f17ed7a1 o removed unused methods
o added -isDisabled
o added -shouldDisplay


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19944 72102866-910b-0410-8b05-ffd578937521
2004-09-01 13:44:01 +00:00
ayers
c0de7793f9 * 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
ayers
7ae3b02170 * 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
ayers
e26781c88b * 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
ayers
957919aa1c Correct ChangeLog.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19663 72102866-910b-0410-8b05-ffd578937521
2004-07-01 11:48:20 +00:00
dwetzel
f1b3fa355c *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19538 72102866-910b-0410-8b05-ffd578937521
2004-06-16 22:02:51 +00:00
dwetzel
8a3aeab6a4 Fixed for MacOSX KVC. condition = application.isDebuggingEnabled
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19537 72102866-910b-0410-8b05-ffd578937521
2004-06-16 21:37:57 +00:00
dwetzel
31d7ded439 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
dwetzel
dad6ecae77 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
ayers
82df725c45 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
ayers
07a6932650 * 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
ayers
4cbe16f245 Fix last ChangeLog cleanup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19524 72102866-910b-0410-8b05-ffd578937521
2004-06-15 11:07:49 +00:00
ayers
30f4cf019c * 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
dwetzel
64c1977fe6 mac fixes see file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19513 72102866-910b-0410-8b05-ffd578937521
2004-06-14 00:06:03 +00:00
ayers
15bc17fa7d 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
dwetzel
82e0ed02c4 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
dwetzel
58182bae3d 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
dwetzel
1ce3a1a81b *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19439 72102866-910b-0410-8b05-ffd578937521
2004-06-01 22:56:05 +00:00