__init__.py 468 Bytes
Newer Older
1 2
from .rulesets import RuleSet, add_rule, set_rule, remove_rule, rule_exists, test_rule
from .permissions import add_perm, set_perm, remove_perm, perm_exists, has_perm
3 4 5 6
from .predicates import (Predicate, predicate, always_true, always_false,
                         always_allow, always_deny, is_authenticated,
                         is_superuser, is_staff, is_active, is_group_member)

7
VERSION = (2, 0, 0, 'final', 1)
8 9

default_app_config = 'rules.apps.RulesConfig'