dry-python / dry-python/dry-python.github.io
Permission system done right.
Đang mở
blog
- Ngôn ngữ chính
- HTML
- Star
- 10
- Fork
- 5
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Permission is an ideal example of the context contract additional rules and composition.
We have a nested story with a more strict permission rule than the wrapper story.
`user` has its place in each context contract and we attach different permission validation to it in each contract.
When the `user` will be assigned in the wrapper story, we'll run all its permission validators from all nested stories. So we'll fail early.
Some nested stories will run in the `Celery` task because of the `Delegate` feature. We can fail **that** early.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.