dry-python / dry-python/dry-python.github.io

Permission system done right.

未关闭
#381 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
blog
主要语言
HTML
星标
10
派生
5
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。