Problem with _dashboard after updating to latest master from github

34 views
Skip to first unread message

David Manns

unread,
Jan 15, 2026, 11:49:22 AM (6 days ago) Jan 15
to py4web
I just updated my development environment to lastest py4web, I was running a September version.

_dashboard won't open the databases section of my app (screen shot of the error attached).

I must be missing something obvious - I find make_safe() defined in _dashboard/utils.py and _dashboard/__init__.py has from ./utils import *
Screenshot 2026-01-15 at 11.37.32 AM.png

David Manns

unread,
Jan 15, 2026, 12:19:21 PM (6 days ago) Jan 15
to py4web
Sorry, "from .utils import *" . 

If I breakpoint at __init__ line 393, I find everything prior to make_safe defined in utils is defined, i.e. up through create_app, but make_safe and following are not?? This seems bizarre

David Manns

unread,
Jan 15, 2026, 12:21:42 PM (6 days ago) Jan 15
to py4web
As a side note, _dashboard/utils.py seems to be missing .import datetime

And make no longer seems to have "make requirements"

David Manns

unread,
Jan 15, 2026, 12:29:11 PM (6 days ago) Jan 15
to py4web
in _dashboard/utils:

added import datetime at line 20

added "make_safe" to __all__

_dashboard now seems to be working.
import gzip
import logging
import os
import re
import shutil
import subprocess
import tarfile
import datetime


__all__ = (
"safe_join",
"list_dir",
"recursive_unlink",
"tar",
"untar",
"pack",
"unpack",
"create_app",
"make_safe"
)




David Manns

unread,
Jan 15, 2026, 3:04:25 PM (6 days ago) Jan 15
to py4web
Probably run, get_commits, get_branches, and is_git_repo also need to be included in __all__

Nico Zanferrari

unread,
Jan 16, 2026, 11:26:27 AM (5 days ago) Jan 16
to David Manns, py4web
Thank you David,

I've just made a PR to fix it (#1014 Dashboard app: fix errors from utils and no.css ). This also fix some minor syntax problem on no.css.

I'm working on the Dashboard app to make it more standard, and Massimo liked some of my suggestions. But he spot some problems and preferred to revert some pieces.
I'm also trying to improve the Dashboard app to use themes - stay tuned ;-)

Cheers,
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/679fadd3-e480-448a-b14c-ce8e7669eb0cn%40googlegroups.com.

Hadi Zarkoob

unread,
Jan 18, 2026, 5:55:08 PM (3 days ago) Jan 18
to py4web

Thank you, Nico, for your work on improving the dashboard app. It is such a handy app. I wanted to share a few features I appreciated in the old and new versions.

Old version:

  1. All rows had a uniform height, similar to standard database interfaces.

  2. Reference fields were clickable, allowing users to navigate directly to the corresponding row.

New version:

  1. The row order is now saved in the URL, which allows users to refresh the page without losing their custom ordering.

  2. The in-dashboard editing interface looks more polished.

I hope that as many of these features as possible can be retained or expanded upon in future releases.

Thank you again!

Hadi


Massimo DiPierro

unread,
Jan 18, 2026, 8:51:12 PM (3 days ago) Jan 18
to py4web
100% we should restore old version 1 & 2 if they are broken. Will test it and get it done today or tomorrow.
Reply all
Reply to author
Forward
0 new messages