Commit graph

699 commits

Author SHA1 Message Date
mguesdon
364a19a6f1 * GSWeb/GSWCheckBoxList.m
fix appendToResponse:inContext:
  respect GNUstep coding standard (curly brackets placement, etc.)
  use GSWAssignAndRemoveAssociation() in initWithName:associations:template:
* GSWeb/GSWElement.[hm]
  add GSWAssignAndRemoveAssociation() to make controls code simplier



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@37850 72102866-910b-0410-8b05-ffd578937521
2014-05-06 16:28:44 +00:00
mguesdon
f833d3981c * GSWeb/GSWApplication.m:
fix -baseURL
* GSWeb/GSWResourceManager.m:
  fix urlForResourceNamed:... when using web server


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@37820 72102866-910b-0410-8b05-ffd578937521
2014-04-29 13:27:49 +00:00
mguesdon
1920a273fd * GSWeb/GSWPopUpButton.m
fix _slowTakeValuesFromRequest:inContext: 
    (convert valueValue before isEqual:)
  replace while loop by a simplier for loop
  respect GNUstep coding standard (curly brackets placement)
  rename variable to make code more understandable
* GSWeb/GSWComponent.m
  respect GNUstep coding standard (curly brackets placement)
  fix validateTakeValue:forKeyPath: (set value if only if different)
  remove non standard and unused methods validation stuff:
    -setValidationFailureMessage:forElement:
    -validationFailureMessageForElement:
    -handleValidationExceptionDefault
    -isValidationFailure
    -validationFailureMessages
    -allValidationFailureMessages
  fix -path 
  remove context -setIsValidate: calls
  remove _uniqueID
  clean code
* GSWeb/GSWComponent.h
  remove _validationFailureMessages
  remove non standard and unused methods validation stuff
  remove _uniqueID
* GSWeb/GSWUtils.[hm]
  remove non standard -isValidationException
  remove -ValidationExceptionRaise*
* GSWeb/GSWContext.[hm]
  remove -setValidate
  remove -isValidate
* GSWeb/GSWApplication.m
  remove context -setIsValidate: calls	



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@37800 72102866-910b-0410-8b05-ffd578937521
2014-04-17 18:13:47 +00:00
mguesdon
66e07118fb * GSWeb/GSWHyperlink.m
fix generateRelativeURLs/generateRelativeURLs
  rename variables to make code easier to understand
  respect GNUstep coding standard (curly brackets placement)
* GSWeb/GSWApplication.m
  set _isMultiThreaded when adaptor dispatchesRequestsConcurrently
  remove -lockRequestHandling
  remove -lockedDecrementActiveSessionCount
  remove -lockedIncrementActiveSessionCount
* GSWeb/GSWApplication.h
  remove -lockRequestHandling
  remove _globalLockn
  remove _globalLock_thread_id
  remove -dealloc
  remove -init
  remove duplicate declarations
  remove -lockedDecrementActiveSessionCount
  remove -lockedIncrementActiveSessionCount
* GSWeb/GSWActionRequestHandler.m
  copy lock code from GSWComponentRequestHandler
* GSWeb/GSWSessionTimeOutManager.m
  use -requestHandlingLock instead of -lockRequestHandling



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@37796 72102866-910b-0410-8b05-ffd578937521
2014-04-14 16:12:24 +00:00
mguesdon
3ad7066815 Bug fixes. See ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@37795 72102866-910b-0410-8b05-ffd578937521
2014-04-13 19:34:39 +00:00
buzzdee
0c5ba4561a * GSWeb/GSWSession.m
do not include linux/sys.h
          patch by Graham Lee


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@37488 72102866-910b-0410-8b05-ffd578937521
2013-12-21 07:09:12 +00:00
buzzdee
0e263dd5a5 * GSWeb/GSWComponentRequestHandler.m
* GSWeb/GSWComponent.m
        * GSWeb/GSWConstants.[h|m]
        * GSWeb/GSWFileUpload.m
        * GSWeb/GSWRequest.m
        * GSWeb/GSWResourceRequestHandler.m
        * GSWeb/GSWResponse.m
        introduce some new string constants to GSWConstants
        and use them more consistently


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36743 72102866-910b-0410-8b05-ffd578937521
2013-06-22 16:00:13 +00:00
dwetzel
b87aa5a799 * GSWAdaptors/Apache2/mod_gsw.c
use strncasecmp to be more tolerant with header case
  update x-webobjects-adaptor-version (old WO uses lowercase, I think) 



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36725 72102866-910b-0410-8b05-ffd578937521
2013-06-13 02:37:54 +00:00
dwetzel
8d89506a0c print 'never' and not the epoch time if there was never a response
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36724 72102866-910b-0410-8b05-ffd578937521
2013-06-12 02:07:41 +00:00
buzzdee
1bb3e95985 * GSWeb/GSWApplication+Defaults.m
* GSWeb/GSWApplication.h
          make the defaultUndoStackLimit NSUInteger



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36716 72102866-910b-0410-8b05-ffd578937521
2013-06-09 14:15:29 +00:00
buzzdee
4d9b27e690 * GSWeb/GSWUtils.m
do not use deprecated method, replace as suggested by warning


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36715 72102866-910b-0410-8b05-ffd578937521
2013-06-09 13:53:39 +00:00
buzzdee
2485f65c95 remove remaining stuff in common directory
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36714 72102866-910b-0410-8b05-ffd578937521
2013-06-09 08:44:29 +00:00
buzzdee
405d46272a * GSWAdaptors/Apache/GNUmakefile.in
* GSWAdaptors/Apache/mod_gsweb.c
          do not reference the common directory anymore
        * move files needed by the Apache adaptor from
          common into the Apache directory


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36713 72102866-910b-0410-8b05-ffd578937521
2013-06-09 08:42:09 +00:00
buzzdee
ceb0e19937 * GSWAdaptors/Apache/mod_gsweb.c
* GSWAdaptors/common/GNUmakefile
        * GSWAdaptors/common/GSWConfig.[h|c]
        * GSWAdaptors/common/GSWLock.h
        * GSWAdaptors/common/GSWStats.c
        * GSWAdaptors/common/GSWUtil.[h|c]
        * GSWAdaptors/common/config.h
          remove #ifdefs of Netscape, Apache and Apache2, only
          leave parts of Apache


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36712 72102866-910b-0410-8b05-ffd578937521
2013-06-09 08:14:21 +00:00
buzzdee
2b30294bec * GSWAdaptors/README.txt
note about Apache adaptor to work with OpenBSD Apache
          delete GSWAdaptors/netscape


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36706 72102866-910b-0410-8b05-ffd578937521
2013-06-06 15:06:46 +00:00
buzzdee
a1d6aed801 * GSWAdaptors/common/GSWAppConnectSocket.c
* GSWAdaptors/common/GSWUtil.c
          make the old Apache Adaptor work on OpenBSD
        * GSWAdaptors/Apache/mod_gsweb.c
        * GSWAdaptors/Apache/GNUmakefile-Apache[1|2]x
          remove all #ifdef Apache2, and remove old GNUmakefiles



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36705 72102866-910b-0410-8b05-ffd578937521
2013-06-06 15:01:40 +00:00
dwetzel
8c3e7bc778 * GSWeb/GSWMessage.m
Remove warning
* README
  Change maintainer



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36693 72102866-910b-0410-8b05-ffd578937521
2013-06-03 00:21:09 +00:00
buzzdee
467f9ef5d2 * GSWAdaptors/Apache/INSTALL
add a missing semicolon, and remove deprecated documentation
        * GSWAdaptors/Apache/mod_gsweb.c
          make it compile with OpenBSD Apache 1.X
        * GSWAdaptors/common/GSWConfig.c
          fix output



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36691 72102866-910b-0410-8b05-ffd578937521
2013-05-31 16:54:17 +00:00
buzzdee
f9d0bab383 * GSWDatabase/WODisplayGroup.m
uncomment the right method, and use an NSIndexSet
          where needed instead of NSArray


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36690 72102866-910b-0410-8b05-ffd578937521
2013-05-31 14:31:36 +00:00
buzzdee
d961ca7dcb Fix a format string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36689 72102866-910b-0410-8b05-ffd578937521
2013-05-31 11:44:12 +00:00
buzzdee
9a02f51126 Fix changelog comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36685 72102866-910b-0410-8b05-ffd578937521
2013-05-31 08:34:21 +00:00
buzzdee
e9d2eb5c78 * GSWeb/GSWApplication.[h|m]
* GSWeb/GSWComponentRequestHandler.m
        * GSWeb/GSWMultiKeyDictionary.m
          make _globalLock a NSRecursiveLock to fix problem
          I introduced with SVN rev 36250, fixes bug 39092


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36684 72102866-910b-0410-8b05-ffd578937521
2013-05-31 08:30:52 +00:00
buzzdee
a1c8f6fc64 * GSWeb/GSWHTTPIO.m
use the file handle in non-blocking mode in GNUstep
          environment, uses a private GSFileHandle class


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36683 72102866-910b-0410-8b05-ffd578937521
2013-05-31 08:28:05 +00:00
buzzdee
ad54bce275 * GSWeb/GSWMessage.[h|]
get rid of bogus #ifndef NO_GNUSTEP

Also tested by Graham Lee on Mac, thanks



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36682 72102866-910b-0410-8b05-ffd578937521
2013-05-31 08:22:17 +00:00
buzzdee
d6886dc683 * GSWeb/GSWElement.h
@class not needed after including full header of that class



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36681 72102866-910b-0410-8b05-ffd578937521
2013-05-30 14:24:38 +00:00
buzzdee
1b8467ac8f * GSWeb/GSWContext.m
remove useless comparison
        * GSWeb/GSWDeclarationParser.m
          fix some format strings and variables used in there
        * Add method to interface and remove a cast
          from bug report 39088



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36680 72102866-910b-0410-8b05-ffd578937521
2013-05-30 08:23:52 +00:00
buzzdee
e2562c7312 * GSWeb/GNUmakefile
* GSWeb/GSWProcFS.m
        * GSWeb/GSWUtils.m
        * GSWeb/GSWHTMLStaticElement.m
        * GSWeb/GSWRecording.m
        * GSWeb/NSString+HTML.m
        * GSWeb/GSWMessage.m
        * GSWeb/GSWRequest.m
        * GSWeb/WOKeyValueUnarchiver.m
        * GSWeb/GSWMultiKeyDictionary.m
        * GSWeb/GSWTemporaryElement.m
          fix some format strings, patch based on submission from
          Graham Lee to bug report 39087


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36679 72102866-910b-0410-8b05-ffd578937521
2013-05-29 17:08:16 +00:00
buzzdee
d1974d883e * GSWeb/NSString+HTML.m
* GSWeb/GSWDeclarationParser.m
          make inline functions static to please clang


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36665 72102866-910b-0410-8b05-ffd578937521
2013-05-27 14:40:51 +00:00
dwetzel
ec96fba78a * GSWExtensions/GSWLongResponsePage.m
* GSWDatabase/WODisplayGroup.m
* GSWeb/GSWHTMLStaticElement.m
* GSWeb/GSWDynamicURLString.m
fix some warnings



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36269 72102866-910b-0410-8b05-ffd578937521
2013-03-05 04:31:52 +00:00
buzzdee
63335271a6 * GSWDatabase/WODisplayGroup.h
* GSWDatabase/WODisplayGroup.m
        * GSWExtensions/GSWCollapsibleComponentContent.h
        * GSWExtensions/GSWCollapsibleComponentContent.m
        * GSWExtensions/GSWDictionaryRepetition.m
        * GSWeb/GSWRequest.m
          make the methods in the interface match the 
          methods in the implementation


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36252 72102866-910b-0410-8b05-ffd578937521
2013-03-03 18:11:52 +00:00
buzzdee
3c4e7d11d7 * GSWeb/GSWPngImageInfo.m
remove useless #warning
        * GSWeb/GSWApplication.m
          _globalLock is NSLock, not NSRecursiveLock


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36250 72102866-910b-0410-8b05-ffd578937521
2013-03-03 09:56:49 +00:00
buzzdee
eca1d3bcc2 * GSWDatabase/WODisplayGroup.[h|m]
* GSWeb/GSWUtils.[h|m]
          no need for categories to reimplement things
          already defined in their primary class



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36249 72102866-910b-0410-8b05-ffd578937521
2013-03-03 09:08:50 +00:00
buzzdee
9b43ca74a3 * GSWeb/GSWContext.m
move @interface before @implementation



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36248 72102866-910b-0410-8b05-ffd578937521
2013-03-03 08:38:45 +00:00
buzzdee
cb089e006a * GSWeb/GSWResourceManager.m
* GSWeb/GSWHTMLStaticElement.m
          do not use redundant stringWithString:



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36247 72102866-910b-0410-8b05-ffd578937521
2013-03-03 08:23:26 +00:00
buzzdee
3e396f3280 * GSWeb/GSWUtils.m
NS(U)Integer conversions


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36246 72102866-910b-0410-8b05-ffd578937521
2013-03-03 02:24:45 +00:00
buzzdee
a114557d31 * GSWeb/GSWComponentDefinition.m
* GSWeb/GSWComponentReference.m
        * GSWeb/GSWContext.m
        * GSWeb/GSWHTMLDynamicElement.m
        * GSWeb/GSWHyperlink.m
        * GSWeb/GSWResourceManager.m
        * GSWeb/GSWResourceRequestHandler.m
          get rid of extaneous parentheses on equality tests


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36245 72102866-910b-0410-8b05-ffd578937521
2013-03-03 02:02:36 +00:00
buzzdee
7dae4fe605 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
buzzdee
308c676de9 * regenerate configure from configure.ac
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36237 72102866-910b-0410-8b05-ffd578937521
2013-03-02 18:00:54 +00:00
dwetzel
9cdb86e4d9 add GSWDatabase/Makefile.preamble patch from Sebastian Reitenbach
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36236 72102866-910b-0410-8b05-ffd578937521
2013-03-02 17:39:47 +00:00
dwetzel
2e3ab05400 * 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
dwetzel
d26615691d * 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
dwetzel
f3219cf8dd * GSWAdaptors/Apache2/mod_gsw.c
modified find_app_by_name() wen dealing with single instances
        include image
        include some css



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@33034 72102866-910b-0410-8b05-ffd578937521
2011-05-14 02:19:04 +00:00
dwetzel
4daf887e60 * 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
rfm
f35aaa0708 warn if gnustep-make not found
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@31304 72102866-910b-0410-8b05-ffd578937521
2010-09-10 13:57:59 +00:00
dwetzel
b7fabf08ef * 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
dwetzel
083d044e10 * 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
dwetzel
e2a9fdf385 * 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
dwetzel
26a0599eb3 * 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
dwetzel
0f452b426d * GSWExtensions/Resources/Info-gnustep.plist
delete
* GSWExtensions/GNUmakefile
let makefiles generate Info-gnustep.plist



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30825 72102866-910b-0410-8b05-ffd578937521
2010-06-22 18:10:25 +00:00
dwetzel
391274d807 * GSWExtensions/Resources/Info-gnustep.plist
* GSWExtensions/GNUmakefile
fix framework name to be able to load files from the right bundle



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30823 72102866-910b-0410-8b05-ffd578937521
2010-06-22 17:39:11 +00:00