I am configuring access control for a web application based on the Pyramid framework. I am setting up permissions for my view callables using the @view_config
decorator. I have two permissions, namely 'read'
and 'write'
. Now, I want certain views to require both permissions. I was unable to figure out how to do this with view_config
- am I missing something, or is there maybe another way to do this?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Make a
readwrite
permission. Each view gets one and only one permission but each principal can be mapped to many permissions.