Bug Report: py4web Dashboard API Error – Undefined make_safe Function

24 views
Skip to first unread message

Hafiz IAM

unread,
Jan 15, 2026, 10:45:49 AM (6 days ago) Jan 15
to py4web

Hi all,

I encountered an issue in the _dashboard app after updating to the latest py4web commit. The py4web dashboard was throwing a NameError when accessing the REST API endpoint, specifically when trying to view database information through the dashboard interface.

Issue Summary

After pulling commit , the py4web dashboard REST API began throwing a NameError when accessing the database tables endpoint.

Error Traceback NameError: name 'make_safe' is not defined File "py4web/apps/_dashboard/__init__.py", line 393, in tables make_safe(db) Root Cause

The tables() function in __init__.py:393 was calling an undefined function make_safe(db). This function was not defined anywhere in the codebase, causing the API endpoint to fail when attempting to process database table information.

Solution

I removed the undefined make_safe(db) call from the tables() function within the api() REST endpoint handler. This function was not necessary for the table-listing functionality, and its removal resolved the error without impacting the dashboard’s ability to display database information.

Environment
  • py4web version: 1.20251212.1
Thank you. 
Best Regards,
Hafiz

Nico Zanferrari

unread,
Jan 16, 2026, 11:17:53 AM (5 days ago) Jan 16
to Hafiz IAM, py4web
Thank you, Hafiz.

I've just made a PR to fix it (#1014 Dashboard app: fix errors from utils and no.css ).

Nico

--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/py4web/3b7724dd-1771-4dd5-9c9e-f35047388e85n%40googlegroups.com.

Massimo DiPierro

unread,
Jan 17, 2026, 10:58:39 PM (4 days ago) Jan 17
to py4web
Thanks. Merged!
Reply all
Reply to author
Forward
0 new messages