diff options
author | Daniel Schadt <kingdread@gmx.de> | 2022-07-05 17:38:01 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2022-07-05 17:38:01 +0200 |
commit | 03b08ca7454e8ff60b26c0bbe79d4bee89b45eaf (patch) | |
tree | b65458cf5af969f71e873ede0f83c687cb87b054 /tests/testutils.py | |
parent | a3c03c25cffbeb61e311a11fb283229a8abcb0c6 (diff) | |
download | fietsboek-03b08ca7454e8ff60b26c0bbe79d4bee89b45eaf.tar.gz fietsboek-03b08ca7454e8ff60b26c0bbe79d4bee89b45eaf.tar.bz2 fietsboek-03b08ca7454e8ff60b26c0bbe79d4bee89b45eaf.zip |
start to use pyramid context factories
This puts the handling of retrieving the right database object at a
single place, which makes it easier to use from the different routes,
and unifies the error handling (some places for example lacked the check
to see if the returned object is None).
It is also the first step to a better permission system based on
Pyramid's ACLs, as we can now implement those on the object. This will
make the code even better and even more uniform, as we don't need to do
the permission checks manually anymore.
Diffstat (limited to 'tests/testutils.py')
0 files changed, 0 insertions, 0 deletions