.py4web_ignore issue and fix

3 views
Skip to first unread message

Tom Clerckx

unread,
9:57 AM (4 hours ago) 9:57 AM
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"],
                         )


Reply all
Reply to author
Forward
0 new messages