.py4web_ignore issue and fix

19 views
Skip to first unread message

Tom Clerckx

unread,
Jan 21, 2026, 9:57:53 AMJan 21
to py4web
I had an issue with .py4web_ignore:
I had a sub-directory in my application directory that was not accessible by my user. Therefore I had put it in my .py4web_ignore file, but this caused an error during the processing of the files/directories by the dashboard.


Fix in the dashboard application:
--- a/apps/_dashboard/__init__.py
+++ b/apps/_dashboard/__init__.py
@@ -294,7 +294,7 @@ def walk(path):
                             [
                                 {"name": d, "content": store[os.path.join(root, d)]}
                                 for d in dirs
-                                if visible(root, d)
+                                if visible(root, d) and os.path.join(root, d) in store
                             ],
                             key=lambda item: item["name"],
                         )


Nico Zanferrari

unread,
Jan 23, 2026, 12:24:48 PMJan 23
to Tom Clerckx, py4web
thanks Tom!



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/d2c39230-ee25-4c27-921d-4cb6ff086c7fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages