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

1"""Administration tools. 

2 

3The ``admin`` action provides html pages for administrators. Both commands 

4require the ``admin`` role and raise ``gws.ForbiddenError`` otherwise. 

5 

6Submodules: 

7 

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. 

13 

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. 

17 

18Example:: 

19 

20 actions+ { type admin } 

21 

22The tools are then available at ``/_/adminInspector`` and ``/_/adminMapCache``. 

23"""