LNT is not compatible with Flask-0.11, which is now the default in pypi
| Bugzilla Link | 28059 |
| Resolution | FIXED |
| Resolved on | Aug 01, 2017 05:46 |
| Version | unspecified |
| OS | All |
Extended Description
LNT fails with the following exception when loaded with Flask-0.11:
File "/home/buildslave/buildslave/clang-cmake-aarch64-full/test/lnt/lnt/server/ui/decorators.py",
line 6, in
Flask-0.11 is now the default in pypi, so it will start to be installed in more places.
The Flask changelog mentions:
"Removed deprecated module functionality."
For now we have coded Flask<0.11 as a hard requirement, but this should be fixed!
The commit (below) seems to fix this issue.
r308795 | cmatthews | 2017-07-21 23:38:19 +0100 (Fri, 21 Jul 2017) | 7 lines
Upgrade to Flask 0.12.2 + switch to Flask Blueprints
The Flask Module system we were using in LNT was depricated and removed from Flask long ago. This changes us from Module to Blueprints. Biggest change is that all url_for calls need to specify the blueprint name, or add a "." for the local blueprint. I updated all uses of url_for to correctly account for this.