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 SummaryAfter 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 CauseThe 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.
SolutionI 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--
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.