Module Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword ListLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore ListLoad Str Str Str Str For NameStore NameLoad body For NameStore ListLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad For NameStore ListLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad For NameStore ListLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad For NameStore ListLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad For NameStore ListLoad Str Str Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str NameLoad Assign NameStore ListLoad Str Str For NameStore NameLoad body For NameStore ListLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad For NameStore ListLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad For NameStore ListLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad For NameStore ListLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Assign NameStore ListLoad Str Str For NameStore NameLoad body For NameStore ListLoad Str Str Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad For NameStore ListLoad Str Str Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore ListLoad Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore ListLoad Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str For NameStore ListLoad Str Str Str Str Str body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad For NameStore ListLoad Str Str Str Str Str NameLoad body For NameStore ListLoad Str Str Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Num Assign NameStore Lambda arguments args NameParam NameParam NameParam NameParam defaults CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list
N/A N/A unittest N/A rbac.acl AclTestCase N/A N/A unittest TestCase N/A N/A The test case of rbac.acl module. N/A registry_class N/A N/A rbac acl Registry setUp N/A N/A self N/A N/A N/A N/A self acl N/A N/A self registry_class N/A N/A N/A N/A self acl add_role user N/A N/A N/A N/A self acl add_role actived_user parents N/A user N/A N/A N/A N/A self acl add_role writer parents N/A actived_user N/A N/A N/A N/A self acl add_role manager parents N/A actived_user N/A N/A N/A N/A self acl add_role editor parents N/A writer manager N/A N/A N/A N/A self acl add_role super N/A N/A N/A N/A self acl add_resource comment N/A N/A N/A N/A self acl add_resource post N/A N/A N/A N/A self acl add_resource news parents N/A post N/A N/A N/A N/A self acl add_resource infor parents N/A post N/A N/A N/A N/A self acl add_resource event parents N/A news N/A N/A N/A N/A self acl allow super None None N/A test_allow N/A N/A self N/A N/A N/A N/A N/A N/A self acl allow actived_user view news N/A N/A N/A N/A self acl allow writer new news N/A roles N/A actived_user writer manager editor N/A role roles N/A N/A resource N/A news event N/A N/A N/A N/A self assertTrue N/A N/A N/A self acl is_allowed role view resource N/A resource N/A post infor N/A N/A N/A N/A self assertFalse N/A N/A N/A self acl is_allowed role view resource N/A resource N/A news event N/A N/A N/A N/A self assertTrue N/A N/A N/A self acl is_any_allowed roles view resource N/A resource N/A post infor N/A N/A N/A N/A self assertFalse N/A N/A N/A self acl is_any_allowed roles view resource N/A resource N/A post news infor event N/A N/A N/A N/A self assertFalse N/A N/A N/A self acl is_allowed user view resource N/A N/A N/A self assertTrue N/A N/A N/A self acl is_allowed super view resource N/A N/A N/A self assertTrue N/A N/A N/A self acl is_allowed super new resource N/A N/A N/A self assertTrue N/A N/A N/A self acl is_any_allowed N/A user super view resource N/A roles N/A writer editor N/A role roles N/A N/A resource N/A news event N/A N/A N/A N/A self assertTrue N/A N/A N/A self acl is_allowed role new resource N/A resource N/A post infor N/A N/A N/A N/A self assertFalse N/A N/A N/A self acl is_allowed role new resource N/A resource N/A news event N/A N/A N/A N/A self assertTrue N/A N/A N/A self acl is_any_allowed roles new resource N/A resource N/A post infor N/A N/A N/A N/A self assertFalse N/A N/A N/A self acl is_any_allowed roles new resource N/A roles N/A user manager N/A role roles N/A N/A resource N/A news event post infor N/A N/A N/A N/A self assertFalse N/A N/A N/A self acl is_allowed role new resource N/A resource N/A news event post infor N/A N/A N/A N/A self assertFalse N/A N/A N/A self acl is_any_allowed roles new resource N/A test_deny N/A N/A self N/A N/A N/A N/A N/A N/A self acl allow actived_user new comment N/A N/A N/A N/A self acl deny manager new comment N/A roles N/A actived_user writer N/A role roles N/A N/A N/A N/A self assertTrue N/A N/A N/A self acl is_allowed role new comment N/A N/A N/A self assertTrue N/A N/A N/A self acl is_any_allowed roles new comment N/A roles N/A manager editor N/A role roles N/A N/A N/A N/A self assertFalse N/A N/A N/A self acl is_allowed role new comment N/A N/A N/A self assertFalse N/A N/A N/A self acl is_any_allowed roles new comment N/A test_undefined N/A N/A self N/A N/A N/A roles N/A user actived_user writer manager editor N/A resource N/A comment post news infor event N/A N/A role roles N/A N/A N/A N/A self assertFalse N/A N/A N/A self acl is_allowed role x resource N/A N/A N/A self assertFalse N/A N/A N/A self acl is_allowed role resource N/A N/A N/A self assertFalse N/A N/A N/A self acl is_allowed role None resource N/A N/A N/A self assertFalse N/A N/A N/A self acl is_any_allowed roles x resource N/A N/A N/A self assertFalse N/A N/A N/A self acl is_any_allowed roles resource N/A N/A N/A self assertFalse N/A N/A N/A self acl is_any_allowed roles None resource N/A resource N/A comment post news infor event None N/A N/A op N/A undefined x None N/A N/A N/A N/A self assertTrue N/A N/A N/A self acl is_allowed super op resource N/A test_assertion N/A N/A self N/A N/A N/A db N/A newsid 1 N/A assertion N/A N/A N/A acl role operation resource N/A N/A N/A db N/A newsid 10 N/A N/A N/A N/A self acl add_role writer2 parents N/A writer N/A N/A N/A N/A self acl allow writer edit news assertion N/A N/A N/A N/A self acl allow manager edit news N/A N/A N/A self assertFalse N/A N/A N/A self acl is_allowed writer edit news N/A N/A N/A self assertFalse N/A N/A N/A self acl is_allowed writer2 edit news N/A N/A N/A self assertTrue N/A N/A N/A self acl is_allowed manager edit news N/A N/A N/A self assertTrue N/A N/A N/A self acl is_allowed editor edit news N/A N/A db N/A newsid 10 N/A N/A N/A self assertTrue N/A N/A N/A self acl is_allowed writer edit news N/A N/A N/A self assertTrue N/A N/A N/A self acl is_allowed editor edit news N/A N/A N/A self assertTrue N/A N/A N/A self acl is_allowed manager edit news N/A test_is_any_allowed N/A N/A self N/A N/A N/A N/A N/A