diff options
| author | Mirko Vogt <mirko-dev@nanl.de> | 2020-05-30 15:26:01 +0000 |
|---|---|---|
| committer | Mirko Vogt <mirko-dev@nanl.de> | 2020-05-30 17:46:13 +0000 |
| commit | 3c84419579030922bc759f4fa5dc9cc8df17001f (patch) | |
| tree | 2332e8e44cb1ef6d96ac68c7f0cd51e0dd2f409d /src | |
| parent | 412fadefabdddda7481fba1bc86958d2f3d10631 (diff) | |
| download | pyramid-3c84419579030922bc759f4fa5dc9cc8df17001f.tar.gz pyramid-3c84419579030922bc759f4fa5dc9cc8df17001f.tar.bz2 pyramid-3c84419579030922bc759f4fa5dc9cc8df17001f.zip | |
Add warning about venusian limitation of only scanning for *.py files
Diffstat (limited to 'src')
| -rw-r--r-- | src/pyramid/view.py | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
