Ferry Boender
60f7a56d5a
Fix linting issues (py3)
4 years ago
Ferry Boender
f762472090
Replace cgi.escape with html.escape
4 years ago
Ferry Boender
afbf7ac37b
Open static files as binary
4 years ago
Ferry Boender
077ecf696c
Port to python 3
4 years ago
Ferry Boender
c78bb1bb6c
Pass additional info to script environment.
5 years ago
Ferry Boender
9fc0c6dab2
Implemented 'fields_from' for dynamic loading of form fields.
5 years ago
Ferry Boender
dddd7223da
Implemented options_from form value for select and radio, allowing dynamic options
5 years ago
Ferry Boender
173a8fe375
Quotes
5 years ago
Ferry Boender
95c1499060
Slightly darker "return" buttons.
5 years ago
Ferry Boender
e0c53eb9ad
Code quality fixes.
5 years ago
Ferry Boender
a359ba548a
Mention authentication exception for static file serving.
7 years ago
Ferry Boender
3897a1e5a8
Fixed checkboxes not being vertically lined up.
7 years ago
Ferry Boender
2ea31d98ff
Implemented "default_value" form option.
7 years ago
Ferry Boender
25a64b7949
Censor password values in audit logging.
7 years ago
Ferry Boender
c00d308fef
Allow pre-auth through REMOTE_USER header
...
Pre-auth looks at the REMOTE_USER header and if it is set, Scriptform
performs no validation of the password and just assumes the username is
correct. This allows pre-authentication from a front-end such as Apache
for HTAUTH, LDAP, OpenID / SSO, etc.
7 years ago
Ferry Boender
58d79a1dbb
Fix improper username retrieval in index.
7 years ago
Ferry Boender
aec8cb860e
Code quality improvements.
7 years ago
Ferry Boender
7a21d6b5f5
Max split once on htauth password. Prevents failure when password contains colon (:)
7 years ago
Ferry Boender
34365b696c
Code quality: logging
8 years ago
Ferry Boender
0e923f49eb
Code quality: Use proper logging msg formatting
8 years ago
Ferry Boender
1a38907241
Code quality.
9 years ago
Ferry Boender
8ef5744631
Refactored script running into its own module.
9 years ago
Ferry Boender
2e8e321a66
Fix stray quote in the HTML output.
9 years ago
Ferry Boender
937a8b6706
Field type 'checkbox': Added 'checked' option for field definition to indicate if the checkbox should be checked by default.
9 years ago
Ferry Boender
66a7a134ff
Rename FormConfig.callback to FormConfig.run_script.
9 years ago
Ferry Boender
82a9f1dad2
Split up WebApp into webserver and RequestHandler part.
9 years ago
Ferry Boender
87d24dd7b1
Rewrote authentication method to be simpler.
9 years ago
Ferry Boender
e145ebcd35
pylint.
9 years ago
Ferry Boender
271ce981fd
min/max => minval/maxval for date field.
9 years ago
Ferry Boender
0b9f093a9d
Removed field type 'number'.
9 years ago
Ferry Boender
8e01b3de75
Refactor: WebApp.auth() returns username, so actually use it.
9 years ago
Ferry Boender
386af020a2
Added abilitity to add custom CSS classes to field definitions.
9 years ago
Ferry Boender
847c42d644
Show which fields are required.
9 years ago
Ferry Boender
a17906b5ba
Show username properly in log when logging auditing information.
9 years ago
Ferry Boender
b8f19a1bba
Enforce min and max dates on "date" fields in HTML5 capable browsers.
9 years ago
Ferry Boender
4771d60448
Enforce minlen and maxlen on "text" fields in HTML5 capable browsers.
9 years ago
Ferry Boender
fb63870487
Enforce minlen on "password" fields in HTML5 capable browsers.
9 years ago
Ferry Boender
200fea8598
Enforce minlen and maxlen on "string" fields in HTML5 capable browsers.
9 years ago
Ferry Boender
24f9a25f54
pyflake and pylint cleanups.
9 years ago
Ferry Boender
0aee57fdf4
Absolute paths to scripts to easy debugging and some additional debugging messages.
9 years ago
Ferry Boender
0c1d213458
Raise HTTPErrors instead of sending errors directly to the client.
9 years ago
Ferry Boender
6d7cdf744c
Small cleanup.
9 years ago
Ferry Boender
6723038209
Show error code and text in browser.
9 years ago
Ferry Boender
20010fb0a4
Raise 404 error instead of sending it directly.
9 years ago
Ferry Boender
fe51013643
Raise error instead of sending making the webapphandler send hand-crafted responses.
9 years ago
Ferry Boender
4210c3c672
pylint improvements.
9 years ago
Ferry Boender
394022e2d3
pylint fixes.
9 years ago
Ferry Boender
485fd773fc
Refactored application into separate files.
9 years ago