Commit graph

17 commits

Author SHA1 Message Date
Sebastian Reitenbach
1fb5357fd3 GSWSessionTimeOutManager conforms to NSLocking protocol
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36244 72102866-910b-0410-8b05-ffd578937521
2013-03-03 01:46:15 +00:00
Dave Wetzel
6049e5892a * configure.ac
* GSWeb/GSWUtils.m
* GSWeb/GSWApplication+Defaults.m
* GSWeb/GSWHTTPIO.m

Fixed for non-Apple platforms, patch from Sebastian Reitenbach.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36230 72102866-910b-0410-8b05-ffd578937521
2013-03-01 23:56:56 +00:00
Dave Wetzel
2658ffe6b6 * added GSWeb/GSWApplication+Defaults.h
* GSWeb/GNUmakefile: use -Werror
* GSWeb/GSWFileUpload.* added multiple file support
* Testing/DynamicElements/FileUpload1Page.wo added multiple file support
* GSWeb/* fixed warnings on Mountain Lion



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36200 72102866-910b-0410-8b05-ffd578937521
2013-02-27 04:27:07 +00:00
Dave Wetzel
37a13f0222 * GSWeb/GSWContext.h
add @class GSWResourceManager
add WOMarkupType
add _markupType;
reformat
* GSWeb/GSWContext.m
add - (WOMarkupType) markupType
* GSWeb/GSWComponent.h
add - (WOMarkupType) markupType
* GSWeb/GSWComponent.m
add - (WOMarkupType) markupType



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@31558 72102866-910b-0410-8b05-ffd578937521
2010-10-25 00:39:36 +00:00
Dave Wetzel
ea3fe3f1e4 * GSWeb/GSWResourceManager.m
+ GSLanguageFromISOLanguage:
use 2 steps to find language, first supplied one 'ja-jp'
if that fails, use 'ja'



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30859 72102866-910b-0410-8b05-ffd578937521
2010-06-26 02:52:00 +00:00
Dave Wetzel
029c4d499e * GSWeb/GSWResourceManager.m
reformat statics, add TheStringsTableLock
add _cachedStringsTable()
add _cachedStringForKey()
rewrote -stringForKey:inTableNamed:withDefaultValue:inFramework:languages:
use NONESTR, not @"NONE"
* Testing/DynamicElements/ImagePage.h
* Testing/DynamicElements/Resources/Chinese.lproj/Localizable.strings
* Testing/DynamicElements/Resources/Russian.lproj/Localizable.strings
* Testing/DynamicElements/Resources/French.lproj/Localizable.strings
* Testing/DynamicElements/Resources/English.lproj/Localizable.strings
* Testing/DynamicElements/Resources/German.lproj/Localizable.strings
* Testing/DynamicElements/ImagePage.m
* Testing/DynamicElements/ImagePage.wo
add test for GSWResourceManager's -stringForKey:inTableNamed:withDefaultValue:inFramework:languages:
* Testing/DynamicElements/DynamicElements.m
set UTF8 encoding
* Testing/DynamicElements/GNUmakefile
add new files



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30841 72102866-910b-0410-8b05-ffd578937521
2010-06-24 02:10:11 +00:00
Dave Wetzel
3fb75c4004 * GSWeb/GSWResponse.m
* GSWeb/GSWHTTPIO.m
do not add ETag
* GSWeb/GSWResourceRequestHandler.h
add request: argument to _responseForDataAtPath:
* GSWeb/GSWResourceRequestHandler.m
add request: argument to _responseForDataAtPath:
_responseForDataAtPath:request:
generate Last-Modified header
generate ETag header
use hash of modification date and size
(faster than over a large NSData object)
check for if-none-match header



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30832 72102866-910b-0410-8b05-ffd578937521
2010-06-23 01:11:05 +00:00
Dave Wetzel
b8b1e1318e * GSWeb/GSWResourceManager.m
make url prefix dynamic based on [request _applicationURLPrefix]



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30827 72102866-910b-0410-8b05-ffd578937521
2010-06-22 21:56:48 +00:00
Dave Wetzel
c40c3de8c4 use resourceName, not path :-)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30821 72102866-910b-0410-8b05-ffd578937521
2010-06-22 16:39:34 +00:00
Dave Wetzel
5ce84bfb63 * GSWeb/GSWResourceManager.m
split names into pathExtension and name before feeding it into NSBundle.
This is not needed on OSX, but on current -base



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30820 72102866-910b-0410-8b05-ffd578937521
2010-06-22 16:34:38 +00:00
Dave Wetzel
1150369626 * GSWeb/GSWResourceManager.h
* GSWeb/GSWComponent.h
disable GS_ATTRIB_DEPRECATED until a solution is found



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30813 72102866-910b-0410-8b05-ffd578937521
2010-06-22 10:27:16 +00:00
Dave Wetzel
39c130d0f5 * GSWExtensions/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.gswd
* GSWExtensions/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.gswd
* GSWExtensions/GNUmakefile
* GSWExtensions/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.gswd
* GSWExtensions/GSWExceptionPage.gswc/GSWExceptionPage.gswd
use exclamation.png. exclamation.svg is not displayed inline in mozilla 
due to a bug in mozilla.
* GSWExtensions/WebServerResources/exclamation.png
* GSWExtensions/WebServerResources/exclamation.svg
new file
* GSWExtensions/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html
* GSWExtensions/GSWExceptionPage.gswc/GSWExceptionPage.html
better web design
* GSWeb/GSWApplication.m
-path
get path from _resourceManager
_resetCache
do not call _clearCache, maybe we should trash the _componentDefinitionCache?
_finishInitializingSession:
make empty, still seems to work
+_applicationClass
don not use _applicationGSWBundle
* GSWeb/GSWResourceManager.h
* GSWeb/GSWResourceManager.m
major redesign with WO 4.5 docs in mind.
* GSWeb/GSWImageButton.m
refactor resourceManager code
* GSWeb/GSWeb.h
remove GSWBundle class
* Testing/DynamicElements
added Image test.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30806 72102866-910b-0410-8b05-ffd578937521
2010-06-22 05:02:29 +00:00
Dave Wetzel
c5b731b3ca use [GSMimeDocument encodingFromCharset:]
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30783 72102866-910b-0410-8b05-ffd578937521
2010-06-19 05:56:33 +00:00
Dave Wetzel
42c4a4c771 * GSWeb/GSWContext.m
- computeQueryDictionaryWithPath:queryDictionary:otherQueryDictionary
use boolValue.
This fixes ?wosid in links where it not has to be.
* GSWeb/GSWMessage.h
remove _contentEncodingIMP, GSWMessage_contentEncoding
* GSWeb/GSWMessage.m
remove contentEncodingSEL, GSWMessage_contentEncoding()
* GSWeb/GSWUtils.h
remove NSStringEncoding
remove + encodingNamed:
* GSWeb/GSWUtils.m
remove encodingsByName
remove + encodingNamed:
* GSWeb/GSWResponse.h
remove GSWResponse_contentEncoding
* GSWeb/GSWBundle.m
use [GSMimeDocument encodingFromCharset:encodingObject]
not + encodingNamed (which we trashed above)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30782 72102866-910b-0410-8b05-ffd578937521
2010-06-19 05:48:58 +00:00
Dave Wetzel
bf698d682f * GSWeb/Resources/languages.plist
add more languages
* GSWeb/GSWHyperlink.m
_appendQueryStringToResponse:inContext:requestHandlerPath:htmlEscapeURL:
use encodeAsCGIFormValuesEscapeAmpersand: not encodeAsCGIFormValues
appendAttributesToResponse:inContext:
use _appendQueryStringToResponse:inContext:requestHandlerPath:htmlEscapeURL: 
not _appendQueryStringToResponse:inContext:
* GSWeb/GSWSession.m
do not dealloc _autoreleasePool in dealloc
This seems to fix 
* GSWeb/NSDictionary+HTML.h
* GSWeb/NSDictionary+HTML.m
fix typo in method name encodeAsCGIFormValuesEscapeAmpersand
* GSWeb/GSWActionURL.m
use _appendQueryStringToResponse:inContext:requestHandlerPath:htmlEscapeURL: 
not _appendQueryStringToResponse:inContext:
* GSWeb/GSWDynamicURLString.m
disable NSLog
* GSWeb/GSWSessionStore.m
_checkInSessionForContext:
enable [session _releaseAutoreleasePool]
add comment



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30764 72102866-910b-0410-8b05-ffd578937521
2010-06-16 09:20:13 +00:00
Dave Wetzel
416e6cad91 * GSWeb/GSWDeployedBundle.m
remove local NSAutoreleasePool
* configure.ac
GSWeb.framework -> GSWeb
* configure
regenerate



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30699 72102866-910b-0410-8b05-ffd578937521
2010-06-14 04:39:51 +00:00
Dave Wetzel
bd96878757 rename all *.framework top level directories to their basename.
* GSWDatabase/WODisplayGroup.m
remove local NSAutoreleasePool
adjust makefiles



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30698 72102866-910b-0410-8b05-ffd578937521
2010-06-14 04:19:25 +00:00