remove Request::post_tab and add Request::http_status

Instead of Reqest::post_tab we use now Request::post_in (pt::Space).

Request::http_status will be used instead Request::status,
but at the moment is not changed in all places.
Request::status has been marked as depracated.

While here:
- Check for root dir in App and not in FunctionParser,
let FunctionParser only log the root dir.
- Read post variables after parsing url parameters,
this allows winix functions to set limits
for post input.
- Set limits when parsing input json format, new
options added to config: post_max_object_items, post_max_table_items,
post_max_all_items, post_max_nested_objects.
There are similar options in each winix function (they are in
FunctionBase).
- Some refactoring in App.
- Add config option: log_whole_http_post if true
then the whole parsed post input is logged.
- Add config option: post_json_max - max length of input stream
for parsing json.
- Add config option: templates_request_status, default request_status.html
this is an ezc template used as [content] when the request status
is not 200_ok.
- Fix: Sort winix function didn't show items to sort (fix and do some
refactoring as well)
- Properly sort items in: ImgCrop, Ls, Sort, Upload
- Remove ezc templates: err_404.html, err_per_denied.html - now
request_status.html is used.
This commit is contained in:
2022-05-30 01:29:18 +02:00
parent 9e222f5b80
commit 7d1fb3c04e
46 changed files with 1224 additions and 835 deletions

View File

@@ -62,8 +62,9 @@ item.o: ../../../morm/src/jsonexpression.h
item.o: ../../../morm/src/postgresqlexpression.h
item.o: ../../../morm/src/jsonconnector.h
item.o: ../../../morm/src/postgresqlconnector.h
item.o: ../../../morm/src/postgresqlqueryresult.h winixmodelconnector.h
item.o: itemcontent.h ../../../winix/winixd/templates/htmltextstream.h
item.o: ../../../morm/src/postgresqlqueryresult.h
item.o: ../../../morm/src/transaction.h winixmodelconnector.h itemcontent.h
item.o: ../../../winix/winixd/templates/htmltextstream.h
item.o: ../../../winix/winixd/templates/misc.h
item.o: ../../../winix/winixd/templates/localefilter.h
item.o: ../../../winix/winixd/templates/locale.h
@@ -200,7 +201,7 @@ itemcontent.o: ../../../morm/src/postgresqlexpression.h
itemcontent.o: ../../../morm/src/jsonconnector.h
itemcontent.o: ../../../morm/src/postgresqlconnector.h
itemcontent.o: ../../../morm/src/postgresqlqueryresult.h
itemcontent.o: winixmodelconnector.h
itemcontent.o: ../../../morm/src/transaction.h winixmodelconnector.h
itemcontent.o: ../../../winix/winixd/templates/htmltextstream.h
itemcontent.o: ../../../winix/winixd/templates/misc.h
itemcontent.o: ../../../winix/winixd/templates/localefilter.h
@@ -301,6 +302,7 @@ migration.o: ../../../morm/src/postgresqlexpression.h
migration.o: ../../../morm/src/jsonconnector.h
migration.o: ../../../morm/src/postgresqlconnector.h
migration.o: ../../../morm/src/postgresqlqueryresult.h
migration.o: ../../../morm/src/transaction.h
user.o: user.h ../../../morm/src/model.h
user.o: ../../../pikotools/src/textstream/textstream.h
user.o: ../../../pikotools/src/textstream/stream.h
@@ -344,7 +346,7 @@ user.o: ../../../morm/src/postgresqlexpression.h
user.o: ../../../morm/src/jsonconnector.h
user.o: ../../../morm/src/postgresqlconnector.h
user.o: ../../../morm/src/postgresqlqueryresult.h
user.o: ../../../winix/winixd/core/synchro.h
user.o: ../../../morm/src/transaction.h ../../../winix/winixd/core/synchro.h
user.o: ../../../winix/winixd/core/filelog.h
user.o: ../../../winix/winixd/core/lock.h
user.o: ../../../winix/winixd/core/synchro.h
@@ -470,7 +472,8 @@ winixmodel.o: ../../../morm/src/cursor.h ../../../morm/src/jsonexpression.h
winixmodel.o: ../../../morm/src/postgresqlexpression.h
winixmodel.o: ../../../morm/src/jsonconnector.h
winixmodel.o: ../../../morm/src/postgresqlconnector.h
winixmodel.o: ../../../morm/src/postgresqlqueryresult.h winixmodelconnector.h
winixmodel.o: ../../../morm/src/postgresqlqueryresult.h
winixmodel.o: ../../../morm/src/transaction.h winixmodelconnector.h
winixmodel.o: ../../../winix/winixd/core/session.h
winixmodelconnector.o: winixmodelconnector.h
winixmodelconnector.o: ../../../morm/src/modelconnector.h