Commit Graph

55 Commits

Author SHA1 Message Date
Manuel Hirth
2c69fc80cc Tentative progress with the form system, based on newly introduced DOM AbstractElements 2024-02-05 21:52:59 +01:00
Manuel Hirth
684a440b2c Added Float and Number sanitizers 2024-02-05 21:50:13 +01:00
Manuel Hirth
f37122eec7 renamed MetaChildAware to ChildAwareMeta 2024-02-05 21:48:45 +01:00
9cf17876a8 JOINed fields for model-based database queries now get automagically inserted into obj.joined, database hooks moved to database/__init__, extended test suite 2023-11-12 11:54:01 +01:00
ff46610abe Added test for database introspection column type checks; Added simple .coveragerc; Extended .gitignore 2023-11-07 06:40:38 +01:00
9dbb85007d Changed database logic to explicitly use Cursor objects; Added row factories to have Cursor.fetch* return Model objects; Adjusted test suite to reflect those changes 2023-11-07 06:14:54 +01:00
c36ddc0f77 Added rudimentary test suite for database introspection. 2023-10-29 00:26:36 +02:00
59e9524937 Added JOIN support to squeal 2023-10-29 00:26:00 +02:00
phryk
c458da3310 added automagic generation of introspection table classes for database layer, a hybrid class/instance method decorator, .delete on Model that generates a Statement object when invoked from class, but executes a delete with where clause when invoked from instance, slightly extended database tests 2023-08-29 06:05:31 +02:00
phryk
8fa9bba1a6 extended database tests 2023-08-14 21:44:29 +02:00
phryk
5666b9a4da fixed bug in Model.load, moved tests around, routing tests now use app fixture 2023-08-14 00:44:37 +02:00
phryk
52ab9b8020 restructured database subsystem, added test fixtures and first database tests. also default config including database metadata for testing 2023-08-10 00:05:48 +02:00
phryk
04e5daf8d0 Added support for information_schema to squeal 2023-04-11 13:00:25 +02:00
phryk
914f0b196f Fix for RawSQL in squeal 2023-04-11 12:59:28 +02:00
phryk
9d30a6e60b fixed bugs in session logic, added function references to squeal as well as an automatically filled 'created' column for sessions and made generalized hooks canonical 2023-03-05 23:38:14 +01:00
phryk
3f3e42c9f6 added indexes and function calls to SQL generator 2023-02-17 06:47:00 +01:00
phryk
f15b186074 something something sessions 2023-02-12 01:08:53 +01:00
phryk
06fffd6c75 generalized hooking mechanism, imported database into packages __init__ 2023-01-21 08:18:07 +01:00
phryk
f9a4f0fe62 some refinements in squeal, started implementing actual database interaction in new module 2023-01-21 07:44:05 +01:00
phryk
98d24f34f4 Added most basic postgres data types 2023-01-13 21:25:07 +01:00
phryk
e157d59fb8 Renames: Model -> Table, Field -> Column; Fixed column-bound FK constraint, possibly more. 2023-01-13 20:48:41 +01:00
phryk
fbd7d7d692 Added initial Constraint implementations, not integrated yet 2023-01-05 05:59:33 +01:00
phryk
92cc6040f1 Broke up squeal into proper package 2023-01-04 20:29:30 +01:00
phryk
8e2e0518a3 Found a good name for the SQL generator ( ͡° ͜ʖ ͡°) 2023-01-04 19:21:59 +01:00
phryk
7bc551a6c7 Renamed Query to Statement, added UPDATE, DELETE and DROP TABLE statements, fixed some minor things 2023-01-03 19:43:35 +01:00
phryk
c5909891c7 Added Parameters and simple implementations for INSERT and CREATE TABLE queries to SQL generator 2023-01-02 23:09:39 +01:00
phryk
732fb6668a started work on query generator 2023-01-02 18:59:21 +01:00
phryk
86b1b37200 adjusted newline in DOMinion output for wrapper lists/tuples 2022-12-29 05:21:49 +01:00
phryk
0269e4e06c fixed theme resource delivery, added ugly hack to deliver .css with correct content-type 2022-12-29 05:14:37 +01:00
phryk
77435a5280 removed abandoned control structure approach with actual classes 2022-12-29 04:40:54 +01:00
phryk
fa24d5e218 Integrated new templating enging into rendering logic, added IF and FOR to it 2022-12-29 04:38:38 +01:00
phryk
968c839b35 added initial dominion templating implementation 2022-12-14 19:44:49 +01:00
phryk
85c10ab434 added own cookie implementation 2022-11-07 23:59:06 +01:00
phryk
eab4e67431 something something, old cookie stuff 2022-11-06 22:29:29 +01:00
phryk
7b49c0f8b0 Implemented streamed file delivery, added theme asset delivery 2022-08-28 03:04:14 +02:00
phryk
1c1775bafd Renamed boot_run to boot on Application 2022-08-28 00:33:13 +02:00
phryk
50a44a6aab Added support for multipart variables in URL routing, added @boot decorator, moved things from __init__.py into own submodules 2022-08-28 00:31:44 +02:00
phryk
57b4f8f8d7 Implemented configuration singleton 2022-08-26 04:13:57 +02:00
phryk
a4241449fe added coverage data to .gitignore 2022-08-23 18:02:28 +02:00
phryk
c18a5f3f34 Renderables now rendered indirectly through 'main.<format>' template, main.html.jinja supplied 2022-08-23 18:01:50 +02:00
phryk
9d4d465a5b Added app proxy singleton 'appoxy', used to determine default dispatcher for rendering if none is passed 2022-08-23 18:00:52 +02:00
phryk
38fbfc86a0 Fixed ooze_path 2022-08-23 17:40:29 +02:00
phryk
069d150d61 Added nestable subsites 2022-08-23 02:38:12 +02:00
phryk
b51d4ceaed Removed unused repeated logic Route.part_match 2022-08-22 21:37:39 +02:00
phryk
6009a16236 Implemented basic logic for renderable objects, made major component classes overridable 2022-08-20 23:53:05 +02:00
phryk
173bc7d210 Added main log to .gitignore 2022-08-18 04:01:09 +02:00
phryk
8813ba7ad1 Added automatic casting of view functions return values to str 2022-08-18 02:48:50 +02:00
phryk
6ddfa34927 Extended routing tests 2022-08-18 02:46:32 +02:00
phryk
a424f1bc08 Defaulting to 'str' sanitizer token if none is supplied in URL rule, fixing a bug because None wasn't handled 2022-08-18 02:46:06 +02:00
phryk
7082c35378 Added sanitation unit tests 2022-08-18 02:23:30 +02:00