home · contact · privacy
plomtask
7 months agoDraw Process descendant trees, and guard against recursion within them.
Christian Heller [Tue, 2 Apr 2024 00:35:20 +0000 (02:35 +0200)]
Draw Process descendant trees, and guard against recursion within them.

7 months agoAdd Process.children and improve Params/Postvars parsing and testing.
Christian Heller [Sat, 30 Mar 2024 06:14:40 +0000 (07:14 +0100)]
Add Process.children and improve Params/Postvars parsing and testing.

7 months agoCatch POSTs to undefined targets, expand and refactor tests.
Christian Heller [Wed, 27 Mar 2024 04:34:30 +0000 (05:34 +0100)]
Catch POSTs to undefined targets, expand and refactor tests.

7 months agoMinor code documentation changes.
Christian Heller [Wed, 27 Mar 2024 03:54:34 +0000 (04:54 +0100)]
Minor code documentation changes.

7 months agoIn HTTP module, wrap params parsing into ParamsParser.
Christian Heller [Wed, 27 Mar 2024 03:49:01 +0000 (04:49 +0100)]
In HTTP module, wrap params parsing into ParamsParser.

7 months agoFix module description.
Christian Heller [Wed, 27 Mar 2024 03:18:14 +0000 (04:18 +0100)]
Fix module description.

7 months agoAdd PostvarsParser to isolate postvars parsing/checking.
Christian Heller [Wed, 27 Mar 2024 02:29:03 +0000 (03:29 +0100)]
Add PostvarsParser to isolate postvars parsing/checking.

7 months agoExtend POST tests, and handling of missing form data.
Christian Heller [Wed, 27 Mar 2024 01:33:28 +0000 (02:33 +0100)]
Extend POST tests, and handling of missing form data.

7 months agoAdd test for nonsensical pages triggering 404.
Christian Heller [Wed, 27 Mar 2024 01:07:53 +0000 (02:07 +0100)]
Add test for nonsensical pages triggering 404.

7 months agoRemove unnecessary DB commit.
Christian Heller [Wed, 27 Mar 2024 01:06:06 +0000 (02:06 +0100)]
Remove unnecessary DB commit.

7 months agoRedirect / to /day, throw informative Exception on other unknown paths.
Christian Heller [Wed, 27 Mar 2024 01:04:52 +0000 (02:04 +0100)]
Redirect / to /day, throw informative Exception on other unknown paths.

7 months agoIn template views, add links to Day and Process creation.
Christian Heller [Wed, 27 Mar 2024 00:49:57 +0000 (01:49 +0100)]
In template views, add links to Day and Process creation.

7 months agoExplicitly disallow Process(id_=0).
Christian Heller [Wed, 27 Mar 2024 00:45:10 +0000 (01:45 +0100)]
Explicitly disallow Process(id_=0).

7 months agoFix HTTP exception codes.
Christian Heller [Wed, 27 Mar 2024 00:39:44 +0000 (01:39 +0100)]
Fix HTTP exception codes.

7 months agoUse different exceptions throwing different HTTP codes for different cases.
Christian Heller [Wed, 27 Mar 2024 00:34:22 +0000 (01:34 +0100)]
Use different exceptions throwing different HTTP codes for different cases.

7 months agoPut mypy into strict mode, adapt code to still pass.
Christian Heller [Tue, 26 Mar 2024 22:58:03 +0000 (23:58 +0100)]
Put mypy into strict mode, adapt code to still pass.

7 months agoAdd Processes module tests, re-organize/re-factor unit tests.
Christian Heller [Tue, 26 Mar 2024 00:25:27 +0000 (01:25 +0100)]
Add Processes module tests, re-organize/re-factor unit tests.

7 months agoAdd rump Processes, and to those VersionedAttributes.
Christian Heller [Tue, 26 Mar 2024 00:09:01 +0000 (01:09 +0100)]
Add rump Processes, and to those VersionedAttributes.

7 months agoExplicitly use DATE_FORMAT in todays_date().
Christian Heller [Wed, 20 Mar 2024 03:03:55 +0000 (04:03 +0100)]
Explicitly use DATE_FORMAT in todays_date().

7 months agoIn calendar view, fill gaps between non-subsequent dates.
Christian Heller [Wed, 20 Mar 2024 03:01:14 +0000 (04:01 +0100)]
In calendar view, fill gaps between non-subsequent dates.

7 months agoRemove some redundant code.
Christian Heller [Wed, 20 Mar 2024 02:52:49 +0000 (03:52 +0100)]
Remove some redundant code.

7 months agoAdd Day.prev_date/Day.next_date and use them for navigation in Day page.
Christian Heller [Wed, 20 Mar 2024 02:50:28 +0000 (03:50 +0100)]
Add Day.prev_date/Day.next_date and use them for navigation in Day page.

7 months agoAdd date range input form to /calendar view.
Christian Heller [Wed, 20 Mar 2024 02:37:25 +0000 (03:37 +0100)]
Add date range input form to /calendar view.

7 months agoCollect GET /calendar range from "?start=" and "?end=".
Christian Heller [Wed, 20 Mar 2024 02:33:17 +0000 (03:33 +0100)]
Collect GET /calendar range from "?start=" and "?end=".

7 months agoAllow 'today' as calendar range limit, and default to today in GET /day of empty...
Christian Heller [Wed, 20 Mar 2024 02:25:08 +0000 (03:25 +0100)]
Allow 'today' as calendar range limit, and default to today in GET /day of empty "?date=".

7 months agoFix miswritten test.
Christian Heller [Wed, 20 Mar 2024 02:19:47 +0000 (03:19 +0100)]
Fix miswritten test.

7 months agoChange variable name to avoid confusion between DB and HTTP connections.
Christian Heller [Wed, 20 Mar 2024 02:02:37 +0000 (03:02 +0100)]
Change variable name to avoid confusion between DB and HTTP connections.

7 months agoFor POST /day, do not default to a valid date if none provided.
Christian Heller [Wed, 20 Mar 2024 02:00:50 +0000 (03:00 +0100)]
For POST /day, do not default to a valid date if none provided.

7 months agoAdd POST /day tests.
Christian Heller [Wed, 20 Mar 2024 01:59:14 +0000 (02:59 +0100)]
Add POST /day tests.

7 months agoAdd basic GET /calendar test.
Christian Heller [Wed, 20 Mar 2024 01:47:51 +0000 (02:47 +0100)]
Add basic GET /calendar test.

7 months agoExtend GET /day?date= test.
Christian Heller [Wed, 20 Mar 2024 01:39:02 +0000 (02:39 +0100)]
Extend GET /day?date= test.

7 months agoOn GET /day with unknown (but valid) "?date=", create new Day.
Christian Heller [Wed, 20 Mar 2024 01:37:20 +0000 (02:37 +0100)]
On GET /day with unknown (but valid) "?date=", create new Day.

7 months agoAdd rump HTTP server/handler testing.
Christian Heller [Wed, 20 Mar 2024 01:32:07 +0000 (02:32 +0100)]
Add rump HTTP server/handler testing.

7 months agoMove TEMPLATES_DIR constant into web server module.
Christian Heller [Wed, 20 Mar 2024 01:22:08 +0000 (02:22 +0100)]
Move TEMPLATES_DIR constant into web server module.

7 months agoSlightly extend Day.by_date tests.
Christian Heller [Wed, 20 Mar 2024 00:31:33 +0000 (01:31 +0100)]
Slightly extend Day.by_date tests.

7 months agoMinor refactorings.
Christian Heller [Wed, 20 Mar 2024 00:29:58 +0000 (01:29 +0100)]
Minor refactorings.

7 months agoAdd Day POSTing.
Christian Heller [Wed, 20 Mar 2024 00:20:25 +0000 (01:20 +0100)]
Add Day POSTing.

7 months agoAdd Day.comment field.
Christian Heller [Wed, 20 Mar 2024 00:02:03 +0000 (01:02 +0100)]
Add Day.comment field.

7 months agoRename DB path environment variable to something more unique.
Christian Heller [Tue, 19 Mar 2024 23:48:16 +0000 (00:48 +0100)]
Rename DB path environment variable to something more unique.

7 months agoMinor class method reorganizations.
Christian Heller [Tue, 19 Mar 2024 23:46:13 +0000 (00:46 +0100)]
Minor class method reorganizations.

7 months agoRefactor Days tests into those with and without DB setup need.
Christian Heller [Sun, 17 Mar 2024 05:08:45 +0000 (06:08 +0100)]
Refactor Days tests into those with and without DB setup need.

7 months agoAdd single-day view / retrieval.
Christian Heller [Sun, 17 Mar 2024 05:04:29 +0000 (06:04 +0100)]
Add single-day view / retrieval.

7 months agoAdd Day.all() date ranging test.
Christian Heller [Sun, 17 Mar 2024 04:05:49 +0000 (05:05 +0100)]
Add Day.all() date ranging test.

7 months agoAdd basic date ranging to Day.all().
Christian Heller [Sun, 17 Mar 2024 04:03:05 +0000 (05:03 +0100)]
Add basic date ranging to Day.all().

7 months agoRequire explicit call to Day.save to have any Day committed to DB.
Christian Heller [Sun, 17 Mar 2024 03:03:34 +0000 (04:03 +0100)]
Require explicit call to Day.save to have any Day committed to DB.

7 months agoAdd database connection, read and write Days through them.
Christian Heller [Sun, 17 Mar 2024 02:47:56 +0000 (03:47 +0100)]
Add database connection, read and write Days through them.

7 months agoTo DB schema validation error message add diff of offending lines.
Christian Heller [Sun, 17 Mar 2024 02:21:22 +0000 (03:21 +0100)]
To DB schema validation error message add diff of offending lines.

7 months agoAdd creation, validation, setting of rump database file.
Christian Heller [Sun, 17 Mar 2024 02:15:55 +0000 (03:15 +0100)]
Add creation, validation, setting of rump database file.

7 months agoAdd testing of Day sorting.
Christian Heller [Sun, 17 Mar 2024 01:05:26 +0000 (02:05 +0100)]
Add testing of Day sorting.

7 months agoFix and extend Day date testing.
Christian Heller [Sun, 17 Mar 2024 01:03:33 +0000 (02:03 +0100)]
Fix and extend Day date testing.

7 months agoAdd date validation for Days.
Christian Heller [Sun, 17 Mar 2024 01:00:33 +0000 (02:00 +0100)]
Add date validation for Days.

7 months agoMove TEMPLATES_DIR setting into run.py.
Christian Heller [Sun, 17 Mar 2024 00:54:01 +0000 (01:54 +0100)]
Move TEMPLATES_DIR setting into run.py.

7 months agoFix broken server __init__.
Christian Heller [Sun, 17 Mar 2024 00:51:46 +0000 (01:51 +0100)]
Fix broken server __init__.

7 months agoRe-structure whole code into more package-typical file modularity.
Christian Heller [Sun, 17 Mar 2024 00:43:45 +0000 (01:43 +0100)]
Re-structure whole code into more package-typical file modularity.

7 months agoRe-structure for unittest usage.
Christian Heller [Sun, 17 Mar 2024 00:24:00 +0000 (01:24 +0100)]
Re-structure for unittest usage.

7 months agoImprove type hints sufficiently for mypy not to complain, and for Day.__eq__ check...
Christian Heller [Sat, 16 Mar 2024 23:56:26 +0000 (00:56 +0100)]
Improve type hints sufficiently for mypy not to complain, and for Day.__eq__ check comparand's type.

7 months agoAdd type hints.
Christian Heller [Sat, 16 Mar 2024 23:44:33 +0000 (00:44 +0100)]
Add type hints.

7 months agoDisplay HandledException as HTML message with appropriate status code.
Christian Heller [Sat, 16 Mar 2024 23:36:22 +0000 (00:36 +0100)]
Display HandledException as HTML message with appropriate status code.

7 months agoAdd previously forgotten days module file, oops.
Christian Heller [Sat, 16 Mar 2024 23:24:38 +0000 (00:24 +0100)]
Add previously forgotten days module file, oops.

7 months agoUse different do_GET handlers for different paths.
Christian Heller [Sat, 16 Mar 2024 23:24:01 +0000 (00:24 +0100)]
Use different do_GET handlers for different paths.

7 months agoMove pylint configuration into .pylintrc.
Christian Heller [Sat, 16 Mar 2024 23:17:03 +0000 (00:17 +0100)]
Move pylint configuration into .pylintrc.

7 months agoAdd rump Days module.
Christian Heller [Sat, 16 Mar 2024 23:00:29 +0000 (00:00 +0100)]
Add rump Days module.

8 months agoAdd Jinja2 templating, and requirements.txt infrastructure.
Christian Heller [Sat, 16 Mar 2024 21:44:07 +0000 (22:44 +0100)]
Add Jinja2 templating, and requirements.txt infrastructure.

8 months agoAdd small script for setting up a proper development environment.
Christian Heller [Sat, 16 Mar 2024 21:36:34 +0000 (22:36 +0100)]
Add small script for setting up a proper development environment.

8 months agoAdd suggestion for pre-commit hook running mypy, flake8, pylint.
Christian Heller [Sat, 16 Mar 2024 21:29:07 +0000 (22:29 +0100)]
Add suggestion for pre-commit hook running mypy, flake8, pylint.

8 months agoSet up basic web server infrastructure.
Christian Heller [Sat, 16 Mar 2024 20:35:10 +0000 (21:35 +0100)]
Set up basic web server infrastructure.