From 3c84419579030922bc759f4fa5dc9cc8df17001f Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Sat, 30 May 2020 15:26:01 +0000 Subject: Add warning about venusian limitation of only scanning for *.py files --- src/pyramid/view.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/pyramid/view.py b/src/pyramid/view.py index 3911ad375..bcda13733 100644 --- a/src/pyramid/view.py +++ b/src/pyramid/view.py @@ -201,6 +201,16 @@ class view_config: ``view_config`` will work ONLY on module top level members because of the limitation of ``venusian.Scanner.scan``. + Also it will ONLY work on views present as plaintext python + files (*.py), ignoring all non-*.py ones which also includes + *.pyc and *.pyo (python precompiled byte code / optimized) files. + + Another venusian specific precondition to take into account is that + python packages to be found by venusian need to have a __init__.py + file in their root directory. + + This is a limitation in venusian documented in: + https://docs.pylonsproject.org/projects/venusian/en/latest/#using-venusian """ venusian = venusian # for testing injection -- cgit v1.2.3