From 6791abe96f14344343ea5464cdfa9be19b85dda9 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 21 Dec 2025 16:06:02 -0600 Subject: [PATCH 01/10] feat: add basic Table views very minimal so far, just laying foundations --- docs/api/wuttaweb.views.tables.rst | 6 + docs/index.rst | 1 + src/wuttaweb/templates/appinfo/index.mako | 12 ++ src/wuttaweb/views/essential.py | 2 + src/wuttaweb/views/tables.py | 135 ++++++++++++++++++++++ tests/views/test_tables.py | 56 +++++++++ 6 files changed, 212 insertions(+) create mode 100644 docs/api/wuttaweb.views.tables.rst create mode 100644 src/wuttaweb/views/tables.py create mode 100644 tests/views/test_tables.py diff --git a/docs/api/wuttaweb.views.tables.rst b/docs/api/wuttaweb.views.tables.rst new file mode 100644 index 0000000..4594aaa --- /dev/null +++ b/docs/api/wuttaweb.views.tables.rst @@ -0,0 +1,6 @@ + +``wuttaweb.views.tables`` +========================= + +.. automodule:: wuttaweb.views.tables + :members: diff --git a/docs/index.rst b/docs/index.rst index bd5c25a..450476e 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -70,6 +70,7 @@ the narrative docs are pretty scant. That will eventually change. api/wuttaweb.views.reports api/wuttaweb.views.roles api/wuttaweb.views.settings + api/wuttaweb.views.tables api/wuttaweb.views.upgrades api/wuttaweb.views.users diff --git a/src/wuttaweb/templates/appinfo/index.mako b/src/wuttaweb/templates/appinfo/index.mako index 7f1abb5..45974b6 100644 --- a/src/wuttaweb/templates/appinfo/index.mako +++ b/src/wuttaweb/templates/appinfo/index.mako @@ -32,6 +32,18 @@ +
+ + % if request.has_perm("tables.list"): + + % endif + +
+