Commit graph

697 commits

Author SHA1 Message Date
Manuel Guesdon
8f1f977388 * 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
Manuel Guesdon
4f18e087c5 * 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
Manuel Guesdon
334e5aaed3 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
Sebastian Reitenbach
729a630d3f * 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
Sebastian Reitenbach
3a1875e963 * 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
Dave Wetzel
0fbad4521b * 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
Dave Wetzel
44ec0f3a83 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
Sebastian Reitenbach
b510389dd7 * 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
Sebastian Reitenbach
d0f16b2b59 * 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
Sebastian Reitenbach
2744d5d2a9 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
Sebastian Reitenbach
f4583f34b8 * 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
Sebastian Reitenbach
fe3b9ce17c * 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
Sebastian Reitenbach
ae7a86c834 * 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
Sebastian Reitenbach
37f0c6a624 * 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
Dave Wetzel
720585fe82 * 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
Sebastian Reitenbach
25cd649e64 * 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
Sebastian Reitenbach
ac2b24d8fb * 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
Sebastian Reitenbach
01a919e50e 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
Sebastian Reitenbach
96f2f7b252 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
Sebastian Reitenbach
6526169e13 * 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
Sebastian Reitenbach
07ed53b16d * 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
Sebastian Reitenbach
e0ca8e7c7e * 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
Sebastian Reitenbach
220246339d * 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
Sebastian Reitenbach
0077c8591e * 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
Sebastian Reitenbach
65807fb6e8 * 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
Sebastian Reitenbach
af07675e30 * 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
Dave Wetzel
2b86cd2dca * 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
Sebastian Reitenbach
83854b342e * 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
Sebastian Reitenbach
52b1c12260 * 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
Sebastian Reitenbach
a2021d67ea * 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
Sebastian Reitenbach
ba2bc5df95 * 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
Sebastian Reitenbach
bf98c56b9b * 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
Sebastian Reitenbach
9248fe8856 * 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
Sebastian Reitenbach
ec3794334c * 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
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
Sebastian Reitenbach
19c4052089 * 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
Dave Wetzel
60f0853e03 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
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
041da71850 * 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
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
Richard Frith-MacDonald
b375b9899e 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
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
4a964c44e5 * 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
Dave Wetzel
57f1d3c12c * 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
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