Method to list all predicates/rules?
benwhalley opened this issue · comments
Ben Whalley commented
Is there way to list all registered predicates/rules, e.g. for the purposes of documenting permissions?
dfunckt commented
Yes, rules are registered in rulesets which are regular dicts. So you just need to import the ruleset and iterate over its keys/values. The permissions ruleset can be imported as from rules.permissions import permissions
.
Ben Whalley commented
Cool - thanks.