Coverage for gws-app/gws/plugin/admin_action/__init__.py: 100%
0 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-05 13:35 +0200
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-05 13:35 +0200
1"""Administration tools.
3The ``admin`` action provides html pages for administrators. Both commands
4require the ``admin`` role and raise ``gws.ForbiddenError`` otherwise.
6Submodules:
8- ``action``: the ``admin`` action with the ``adminMapCache`` and ``adminInspector`` GET commands.
9- ``inspector``: the object inspector, a page to browse the configured object tree and
10 search it for property values.
11- ``mapcache``: the cache viewer, a page that shows the tile caches, their levels and
12 cached tiles on a map.
14Each tool renders a page from its ``page.cx.html`` template and serves its own
15assets (``page.js``, ``page.css``) through the same command, using the ``path``
16parameter.
18Example::
20 actions+ { type admin }
22The tools are then available at ``/_/adminInspector`` and ``/_/adminMapCache``.
23"""