Module Expr Str Assign NameStore TupleLoad Str Str Str Str Str ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str If BoolOpAnd Call NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If NameLoad body If CompareIsNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr ListLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd Call NameLoad NameLoad TupleLoad NameLoad NameLoad Call NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad If BoolOpAnd Call NameLoad NameLoad TupleLoad NameLoad NameLoad Call NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad body Assign AttributeStore NameLoad attr ListLoad NameLoad orelse If CompareNotEq SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq SubscriptLoad NameLoad Index Num Str body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr ListLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad orelse If Call NameLoad AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd CompareIs NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Dict If CompareIs NameLoad NameLoad body Return NameLoad If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If NameLoad body Assign NameStore BinOpMod Str SubscriptLoad NameLoad Slice Num Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad Call NameLoad NameLoad keyword ListLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad Return NameLoad ExceptHandler type NameLoad body Assign NameStore NameLoad If BoolOpAnd NameLoad Call NameLoad NameLoad Str CompareEq Call NameLoad AttributeLoad NameLoad attr Call NameLoad Lambda arguments args defaults NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse If AttributeLoad NameLoad attr body Return NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr If NameLoad body For NameStore NameLoad body If Call NameLoad NameLoad body Assign NameStore NameLoad Break orelse Assign NameStore NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return IfExp AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad For NameStore NameLoad body If BoolOpAnd Call NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Assign NameStore NameLoad orelse If UnaryOpNot NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpOr CompareIn NameLoad AttributeLoad NameLoad attr CompareIn NameLoad NameLoad body Return Num Return Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad orelse For NameStore AttributeLoad NameLoad attr body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body If BoolOpOr CompareIs NameLoad NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If NameLoad body For NameStore AttributeLoad NameLoad attr body If BoolOpOr CompareIs NameLoad NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad If CompareEq SubscriptLoad NameLoad Slice Num Str body Raise NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Num If CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return Num Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Return Num If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd UnaryOpNot NameLoad CompareIs AttributeLoad NameLoad attr NameLoad body Return Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIn Str NameLoad body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num handlers ExceptHandler body Pass If BoolOpOr CompareEq NameLoad NameLoad CompareIn NameLoad NameLoad body Assign NameStore Num If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpOr CompareEq NameLoad NameLoad CompareIn NameLoad NameLoad body Assign NameStore Num orelse If CompareEq NameLoad Str body Return Num orelse If CompareIsNot NameLoad NameLoad body Return Num If CompareEq NameLoad Num body Assign NameStore Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If BoolOpOr CompareNotIn NameLoad NameLoad BoolOpAnd CompareIn NameLoad NameLoad CompareNotEq SubscriptLoad NameLoad Index NameLoad Call NameLoad NameLoad body Assign NameStore Num Break orelse Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr If NameLoad body If NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad ListComp CompareEq SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Num orelse If BoolOpAnd CompareGtEGt Call NameLoad NameLoad Call NameLoad NameLoad Num Call AttributeLoad SubscriptLoad NameLoad Index BinOpSub Call NameLoad NameLoad Num attr UnaryOpNot Call AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Num attr body Assign NameStore Num orelse Return Num orelse Assign NameStore Num orelse If NameLoad body Return Num orelse Assign NameStore Num AugAssignAdd NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return TupleLoad NameLoad NameLoad orelse Assign TupleStore NameStore NameStore TupleLoad NameLoad BinOpSub NameLoad Num For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Return TupleLoad NameLoad NameLoad orelse Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Return BinOpMod Str TupleLoad NameLoad Call AttributeLoad Str attr NameLoad orelse Return BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad Str body Return TupleLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad If NameLoad body AugAssignAdd NameStore NameLoad Assign NameStore ListComp SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Return TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If CompareIs Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return Str orelse If Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq NameLoad NameLoad body While CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body If CompareIs Call NameLoad NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If NameLoad body Return Call AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If BoolOpOr UnaryOpNot NameLoad Call NameLoad ListComp CompareEq Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str For NameStore AttributeLoad NameLoad attr body If BoolOpOr UnaryOpNot NameLoad Call NameLoad ListComp CompareEq Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpOr UnaryOpNot NameLoad Call NameLoad ListComp CompareEq Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareIsNot NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str If UnaryOpNot NameLoad body Return CompareEq Call NameLoad Call AttributeLoad NameLoad attr Num If UnaryOpNot Call NameLoad ListComp CompareEq Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body For NameStore NameLoad body If Call NameLoad ListComp CompareEq Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str If UnaryOpNot NameLoad body Return CompareEq Call NameLoad Call AttributeLoad NameLoad attr Num If UnaryOpNot Call NameLoad ListComp CompareEq Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body For NameStore NameLoad body If Call NameLoad ListComp CompareEq Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Num If CompareLt NameLoad Call NameLoad NameLoad body Return SubscriptLoad NameLoad Slice NameLoad Return ListLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpOr UnaryOpNot NameLoad Call NameLoad ListComp CompareEq Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpOr UnaryOpNot NameLoad Call NameLoad ListComp CompareEq Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad body Return NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIn Str NameLoad body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad handlers ExceptHandler body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr ListLoad orelse Assign AttributeStore NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension NameStore AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore NameLoad Break Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareIn Str AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If CompareIs AttributeLoad NameLoad attr NameLoad body If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num orelse Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad If BoolOpOr CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad UnaryOpNot NameLoad If NameLoad body If BoolOpAnd AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Assign NameStore NameLoad orelse If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad orelse If BoolOpOr AttributeLoad NameLoad attr UnaryOpNot NameLoad body Assign NameStore NameLoad If NameLoad body Assign NameStore Str orelse If CompareEq NameLoad BinOpSub Call NameLoad NameLoad Num body Assign NameStore Str orelse Assign NameStore Str If NameLoad body If NameLoad body Assign NameStore ListLoad NameLoad NameLoad orelse Assign NameStore ListLoad NameLoad If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore ListLoad If BoolOpAnd CompareNotEq NameLoad AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body If BoolOpAnd CompareNotIn Str NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str Assign NameStore ListLoad NameLoad orelse If BoolOpAnd CompareNotIn Str NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad keyword Str orelse Assign NameStore Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Slice Num If BoolOpAnd NameLoad CompareGt Call AttributeLoad NameLoad attr Str Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num orelse Assign NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr IfExp SubscriptLoad NameLoad Index Str NameLoad NameLoad Delete SubscriptDel NameLoad Index Str orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad If CompareIn Str NameLoad body TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Num Index Num handlers ExceptHandler body Pass Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword ListLoad NameLoad Assign NameStore NameLoad If CompareIn NameLoad NameLoad body Assign NameStore NameLoad orelse If NameLoad body Assign NameStore Call NameLoad NameLoad keyword ListLoad NameLoad If CompareIn NameLoad NameLoad body Assign NameStore NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad If BoolOpAnd CompareIs NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return CompareIn NameLoad TupleLoad Str Str Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIs NameLoad NameLoad body Continue If BoolOpOr CompareNotIn NameLoad NameLoad BoolOpAnd CompareIn NameLoad NameLoad CompareNotEq SubscriptLoad NameLoad Index NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareIs AttributeLoad NameLoad attr NameLoad CompareIn Str AttributeLoad NameLoad attr body Assign NameStore ListLoad ListLoad Str orelse Assign NameStore AttributeLoad NameLoad attr If NameLoad body If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad For NameStore NameLoad body Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str If BoolOpAnd Call NameLoad NameLoad TupleLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore NameLoad orelse Assign NameStore NameLoad If Call NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler body Pass orelse If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num If BoolOpOr CompareNotIn NameLoad NameLoad CompareNotIn NameLoad NameLoad body Continue Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If Call NameLoad NameLoad body Assign NameStore Call NameLoad orelse If BoolOpAnd Call NameLoad NameLoad NameLoad CompareIn AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd Call NameLoad NameLoad Str CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Str NameLoad Assign NameStore NameLoad If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler body Pass Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad orelse Assign NameStore TupleLoad Call NameLoad NameLoad NameLoad Return NameLoad Return NameLoad decorator_list decorator_list
N/A N/A  S3 Navigation Module

    @copyright: 2011-2016 (c) Sahana Software Foundation
    @license: MIT

    Permission is hereby granted, free of charge, to any person
    obtaining a copy of this software and associated documentation
    files (the "Software"), to deal in the Software without
    restriction, including without limitation the rights to use,
    copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the
    Software is furnished to do so, subject to the following
    conditions:

    The above copyright notice and this permission notice shall be
    included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
    OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    OTHER DEALINGS IN THE SOFTWARE.

    @todo: - refine check_selected (e.g. must be False if link=False)
           - implement collapse-flag (render only components in a TAG[""])
           - implement convenience methods for breadcrumbs (+renderer))
           - add site-map generator and renderer (easy)
           - rewrite action buttons/links as S3NavigationItems
           - ...and any todo's in the code
 N/A __all__ N/A S3NavigationItem S3ScriptItem S3ResourceHeader s3_rheader_tabs s3_rheader_resource gluon * gluon.storage Storage s3utils s3_unicode S3NavigationItem N/A object N/A N/A 
        Base class and API for navigation items.

        Navigation items are GUI elements to navigate the application,
        typically represented as hyperlinks. Besides form elements,
        navigation items are most common type of GUI controls.

        This base class can be used to implement both nagivation items
        and navigation item containers (e.g. menus), each as subclasses.

        Subclasses should implement the layout() method to render the item as
        HTML (ideally using the web2py helpers). There is no default layout,
        items will not be rendered at all unless the subclass implements a
        layout method or the particular instance receives a renderer as
        parameter.

        Additionally, subclasses should implement the check_*() methods:

            Method:             Checks whether:

            check_active        this item belongs to the requested page
            check_enabled       this item is enabled
            check_permission    the user is permitted to access this item
            check_selected      the item has been selected to request the page

        check_active is the first check run, and the only method that
        actually deactivates the item completely, whereas the other
        methods just set flags for the renderer. All of these methods
        must return True or False for the respective condition.

        There are default check_*() methods in this base class which support
        a menu-alike behavior of the item - which may though not fit for all
        navigation elements.

        For more details, see the S3Navigation wiki page:
        http://eden.sahanafoundation.org/wiki/S3/S3Navigation
     __init__ N/A N/A self label c f args vars extension a r m p t url tags parent translate layout check restrict link mandatory ltr N/A None None None None None None None None None None None None None None True None None None True False False attributes N/A N/A 
            Constructor

            @param label: the label

            @param c: the controller
            @param f: the function
            @param args: the arguments list
            @param vars: the variables Storage
            @param extension: the request extension
            @param a: the application (defaults to current.request.application)
            @param r: the request to default to

            @param m: the URL method (will be appended to args)
            @param p: the method to check authorization for
                      (will not be appended to args)
            @param t: the table concerned by this request
                      (overrides c_f for auth)

            @param url: a URL to use instead of building one manually
                        - e.g. for external websites or mailto: links

            @param tags: list of tags for this item
            @param parent: the parent item

            @param translate: translate the label
            @param layout: the layout
            @param check: a condition or list of conditions to automatically
                          enable/disable this item
            @param restrict: restrict to roles (role UID or list of role UIDs)
            @param link: item has its own URL
            @param mandatory: item is always active
            @param ltr: item is always rendered LTR

            @param attributes: attributes to use in layout
         N/A N/A N/A isinstance label basestring translate N/A N/A N/A self label N/A N/A current T label N/A N/A N/A self label label N/A tags N/A N/A N/A N/A type tags list N/A N/A tags N/A tags N/A N/A self tags tags N/A N/A N/A self tags N/A N/A N/A r None N/A N/A N/A self r r N/A N/A a None N/A N/A a N/A r application N/A N/A c None N/A N/A c N/A r controller N/A N/A f None N/A N/A f N/A r function N/A N/A args None N/A N/A args N/A r args N/A N/A vars None N/A N/A vars N/A r vars N/A N/A N/A self r N/A current request N/A N/A self application a N/A N/A N/A isinstance c N/A list tuple N/A len c N/A N/A N/A self controller N/A c N/A 0 N/A N/A self match_controller c N/A N/A N/A self controller c N/A N/A self match_controller N/A c N/A N/A N/A isinstance f N/A list tuple N/A len f N/A N/A N/A self function N/A f N/A 0 N/A N/A self match_function f N/A N/A N/A self function f N/A N/A self match_function N/A f N/A N/A args None N/A N/A args N/A N/A N/A N/A isinstance args str N/A N/A args N/A N/A args split / N/A N/A self args args N/A vars N/A N/A N/A self vars vars N/A N/A N/A self vars N/A Storage N/A N/A self extension extension N/A N/A self tablename t N/A N/A self method m N/A N/A m None N/A N/A N/A N/A len args N/A N/A N/A self args N/A m N/A N/A N/A N/A args N/A -1 m N/A N/A N/A N/A N/A self args append m N/A N/A p None N/A N/A N/A self p p N/A N/A N/A self p m N/A N/A self override_url url N/A attr N/A Storage N/A opts N/A Storage N/A N/A k v N/A N/A attributes iteritems N/A N/A N/A N/A k N/A 0 _ N/A N/A N/A attr N/A k v N/A N/A N/A opts N/A k v N/A N/A self attr attr N/A N/A self opts opts N/A N/A self parent parent N/A N/A self components N/A N/A N/A self enabled True N/A N/A self selected None N/A N/A self visible None N/A N/A self link link N/A N/A self mandatory mandatory N/A N/A self ltr ltr N/A N/A self restrict restrict N/A N/A restrict None N/A N/A N/A N/A isinstance restrict N/A list tuple N/A N/A N/A self restrict N/A restrict N/A N/A self check check N/A renderer None N/A N/A layout None N/A N/A renderer layout N/A N/A N/A hasattr N/A self __class__ OVERRIDE N/A N/A renderer N/A N/A self get_layout N/A self OVERRIDE N/A N/A N/A renderer None N/A hasattr N/A self __class__ layout N/A N/A renderer N/A self layout N/A N/A self renderer renderer N/A get_layout N/A N/A name N/A N/A N/A 
            Check whether the current theme has a custom layout for this
            class, and if so, store it in current.layouts

            @param: the name of the custom layout
            @return: the layout or None if not present
         N/A N/A hasattr current layouts N/A N/A layouts N/A current layouts N/A N/A layouts N/A N/A N/A layouts False N/A N/A None N/A N/A name layouts N/A N/A N/A layouts N/A name N/A application N/A N/A current request application N/A settings N/A current deployment_settings N/A theme N/A N/A settings get_theme N/A theme_location N/A N/A N/A current response s3 theme_location N/A theme_location N/A N/A theme_location N/A %s. N/A theme_location N/A -1 N/A package N/A applications.%s.modules.templates.%s%s.layouts N/A application theme_location theme N/A N/A N/A override N/A getattr N/A __import__ package fromlist N/A name name N/A N/A N/A ImportError N/A N/A N/A current layouts False N/A None N/A N/A AttributeError N/A N/A override None N/A N/A override N/A hasattr override layout N/A N/A type N/A override layout N/A type N/A N/A N/A N/A None N/A N/A layout N/A override layout N/A N/A layout None N/A N/A layouts N/A name layout N/A N/A current layouts layouts N/A layout N/A staticmethod clone N/A N/A self N/A N/A N/A  Clone this item and its components  N/A item N/A N/A self __class__ N/A N/A item label N/A self label N/A N/A item tags N/A self tags N/A N/A item r N/A self r N/A N/A item application N/A self application N/A N/A item controller N/A self controller N/A N/A item function N/A self function N/A N/A item match_controller N/A c N/A c N/A self match_controller N/A N/A item match_function N/A f N/A f N/A self match_function N/A N/A item args N/A a N/A a N/A self args N/A N/A item vars N/A Storage N/A self vars N/A N/A item extension N/A self extension N/A N/A item tablename N/A self tablename N/A N/A item method N/A self method N/A N/A item p N/A self p N/A N/A item override_url N/A self override_url N/A N/A item attr N/A Storage N/A self attr N/A N/A item opts N/A Storage N/A self opts N/A N/A item parent N/A self parent N/A N/A item components N/A N/A N/A i clone N/A i N/A self components N/A N/A item enabled N/A self enabled N/A N/A item selected N/A self selected N/A N/A item visible N/A self visible N/A N/A item link N/A self link N/A N/A item mandatory N/A self mandatory N/A N/A N/A self restrict None N/A N/A N/A item restrict N/A r N/A r N/A self restrict N/A N/A N/A item restrict None N/A N/A item check N/A self check N/A N/A item renderer N/A self renderer N/A item N/A check_active N/A N/A self request N/A None N/A N/A 
            Check whether this item belongs to the requested page (request).

            If this check returns False, then the item will be deactivated
            entirely, i.e. no further checks will be run and the renderer
            will never be called.

            @param request: the request object (defaults to current.request)
         N/A c N/A N/A self get controller N/A c N/A N/A N/A N/A N/A current deployment_settings has_module c N/A True N/A N/A request None N/A N/A request N/A current request N/A parent N/A self parent N/A N/A parent None N/A N/A N/A N/A parent check_active request N/A N/A N/A self mandatory N/A N/A True N/A N/A N/A N/A self match request N/A N/A True N/A False N/A check_enabled N/A N/A self N/A N/A N/A 
            Check whether this item is enabled.

            This check does not directly disable the item, but rather
            sets the enabled-flag in the item which can then be used
            by the renderer.

            This function is called as the very last action immediately
            before rendering the item. If it returns True, then the
            enabled-flag of the item remains unchanged, otherwise
            it gets set to False (False-override).
         N/A True N/A check_permission N/A N/A self N/A N/A N/A 
            Check whether the user is permitted to access this item.

            This check does not directly disable the item, but rather
            sets the authorized-flag in the item which can then be used
            by the renderer.
         N/A has_role N/A N/A current auth s3_has_role N/A authorized False N/A restrict N/A self restrict N/A restrict N/A N/A role restrict N/A N/A N/A has_role role N/A N/A authorized True N/A N/A N/A authorized True N/A N/A N/A N/A self accessible_url False N/A N/A authorized False N/A authorized N/A check_selected N/A N/A self request N/A None N/A N/A 
            Check whether this item is in the selected path (i.e. whether it
            is or contains the item used to trigger the request).

            This check doesn't change the processing of the item, but
            rather sets the selected-flag which can then be used by the
            renderer

            If this is a top-level item, then this check sets the
            selected-flags for the whole selected path down to the leaf
            item that has triggered the request.

            Note that this doesn't currently reset selected-flags, so this
            check can be performed only once per subtree and request. If
            it would be really neccessary to perform this check more than
            once, then it should be easy to implement a reset_flags method.

            @param request: the request object, defaults to current.request
         N/A N/A N/A self selected None N/A N/A N/A self selected N/A N/A request None N/A N/A request N/A current request N/A N/A N/A self parent None N/A N/A branch N/A N/A self branch request N/A N/A branch None N/A N/A N/A N/A branch select N/A N/A N/A self selected N/A N/A N/A self selected False N/A N/A root N/A N/A self get_root N/A N/A N/A root selected None N/A N/A N/A N/A root check_selected request N/A N/A N/A self selected True False N/A check_hook N/A N/A self N/A N/A N/A 
            Run hooked-in checks
         N/A cond True N/A check N/A self check N/A N/A check None N/A N/A N/A N/A isinstance check N/A list tuple N/A N/A check N/A check N/A condition check N/A N/A N/A N/A callable condition N/A N/A condition self N/A N/A cond False N/A N/A N/A condition N/A N/A cond False N/A cond N/A __contains__ N/A N/A self tag N/A N/A N/A  Check whether a tag is present in any item of the subtree  N/A components N/A self components N/A i components N/A N/A N/A N/A tag N/A i tags N/A tag i N/A N/A 1 N/A 0 N/A findall N/A N/A self tag N/A N/A N/A 
            Find all items within the tree with the specified tag

            @param tag: the tag
         N/A items N/A N/A N/A tag N/A self tags N/A N/A N/A N/A items append self N/A components N/A self components N/A c components N/A N/A _items N/A N/A c findall tag N/A N/A N/A items extend _items N/A items N/A enable N/A N/A self tag N/A None N/A N/A 
            Enable items

            @param tag: enable all items in the subtree with this tag
                        (no tag enables only this item)
         N/A N/A tag None N/A N/A items N/A N/A self findall tag N/A item items N/A N/A N/A N/A item enable N/A N/A N/A self enabled True N/A N/A disable N/A N/A self tag N/A None N/A N/A 
            Disable items

            @param tag: disable all items in the subtree with this tag
                        (no tag disables only this item)
         N/A N/A tag None N/A N/A items N/A N/A self findall tag N/A item items N/A N/A N/A N/A item disable N/A N/A N/A self enabled False N/A N/A select N/A N/A self tag N/A None N/A N/A 
            Select an item. If given a tag, this selects the first matching
            descendant (depth-first search), otherwise selects this item.

            Propagates the selection up the path to the root item (including
            the root item)

            @param tag: a string
         N/A selected None N/A N/A tag None N/A N/A parent N/A self parent N/A parent N/A N/A N/A N/A parent select N/A N/A N/A N/A self deselect_all N/A selected True N/A N/A item N/A self components N/A N/A N/A selected N/A N/A selected N/A N/A item select tag tag N/A N/A N/A N/A item deselect_all N/A N/A N/A selected N/A tag N/A self tags N/A N/A selected True N/A N/A self selected selected N/A selected N/A deselect_all N/A N/A self N/A N/A N/A  De-select this item and all its descendants  N/A N/A self selected None N/A item N/A self components N/A N/A N/A N/A item deselect_all N/A N/A set_layout N/A N/A self layout recursive tag N/A False None N/A N/A 
            Alter the renderer for a tagged subset of items in the subtree.

            @param layout: the layout (renderer)
            @param recursive: set this layout recursively for the subtree
            @param tag: set this layout only for items with this tag
         N/A N/A layout None N/A N/A N/A N/A tag None N/A tag N/A self tags N/A N/A N/A self renderer layout N/A recursive N/A N/A c N/A self components N/A N/A N/A N/A tag None N/A tag N/A c tags N/A N/A N/A N/A c set_layout layout recursive recursive tag tag N/A N/A get N/A N/A self name default N/A None N/A N/A 
            Get a Python-attribute of this item instance, falls back
            to the same attribute in the parent item if not set in
            this instance, used to inherit attributes to components

            @param name: the attribute name
         N/A N/A name N/A self __dict__ N/A N/A value N/A N/A self __dict__ N/A name N/A N/A value None N/A N/A value None N/A N/A value N/A N/A N/A name N/A 2 __ N/A N/A AttributeError N/A parent N/A self parent N/A N/A parent None N/A N/A N/A N/A parent get name N/A default N/A match N/A N/A self request N/A None N/A N/A 
            Match this item against request (uses GET vars)

            @param request: the request object (defaults to current.request)

            @return: the match level (integer):
                        0=no match
                        1=controller
                        2=controller+function
                        3=controller+function+args
                        4=controller+function+args+vars

            @note: currently ignores numerical arguments in the request,
                   which is though subject to change (in order to support
                   numerical arguments in the item)
         N/A level 0 N/A args N/A self args N/A link_vars N/A self vars N/A N/A N/A N/A self application None N/A N/A self application N/A request application N/A N/A 0 N/A N/A N/A N/A self opts selectable False N/A N/A 0 N/A check N/A N/A self check_hook N/A check N/A N/A enabled N/A N/A self check_enabled N/A N/A enabled N/A N/A check False N/A N/A check N/A N/A 0 N/A N/A request None N/A N/A request N/A current request N/A c N/A N/A self get controller N/A mc N/A N/A self get match_controller N/A N/A N/A c N/A N/A self parent None N/A N/A 1 N/A rvars N/A request get_vars N/A controller N/A request controller N/A function N/A request function N/A N/A viewing rvars N/A N/A N/A N/A N/A tn record_id N/A N/A N/A rvars N/A viewing split . N/A N/A controller function N/A N/A tn split _ 1 N/A N/A N/A N/A N/A N/A N/A controller c N/A controller mc N/A N/A level 1 N/A N/A level 1 N/A N/A f N/A N/A self get function N/A mf N/A N/A self get match_function N/A N/A N/A function f N/A function mf N/A N/A level 2 N/A N/A N/A f index N/A N/A 1 N/A N/A N/A f None N/A N/A 0 N/A N/A level 2 N/A N/A extra 1 N/A N/A k v N/A N/A link_vars iteritems N/A N/A N/A N/A k rvars N/A N/A k rvars N/A N/A rvars N/A k N/A s3_unicode v N/A N/A extra 0 N/A N/A N/A extra 2 N/A rargs N/A request args N/A rargs N/A N/A args N/A N/A largs N/A a N/A a N/A request args N/A N/A N/A a isdigit N/A N/A N/A N/A len args N/A len largs N/A all N/A N/A N/A args N/A i N/A largs N/A i N/A i N/A xrange N/A len args N/A N/A level 5 N/A N/A N/A N/A N/A len rargs N/A len args 0 N/A N/A N/A rargs N/A N/A N/A len args 1 isdigit N/A N/A N/A N/A str N/A args N/A -1 isdigit N/A N/A level 1 N/A N/A 0 N/A N/A level 3 N/A N/A args N/A N/A 0 N/A N/A level 5 N/A level extra N/A level N/A branch N/A N/A self request N/A None N/A N/A 
            Get the matching branch item for request

            @param request: the request object (defaults to current.request)
         N/A N/A request None N/A N/A request N/A current request N/A N/A leaf level N/A N/A self __branch request N/A level N/A N/A leaf N/A N/A None N/A __branch N/A N/A self request N/A N/A N/A 
            Find the best match for request within the subtree, recursive
            helper method for branch().

            @param request: the request object
         N/A items N/A N/A self get_all enabled True N/A l N/A N/A self match request N/A N/A items N/A N/A N/A self l N/A N/A N/A match maxlevel N/A None N/A l 1 N/A i items N/A N/A N/A item level N/A N/A i __branch request N/A N/A N/A item None N/A level maxlevel N/A N/A match item N/A maxlevel level N/A N/A match None N/A N/A N/A match maxlevel N/A N/A N/A self l N/A __repr__ N/A N/A self N/A N/A N/A  String representation of this item  N/A components N/A N/A str c N/A c N/A self components N/A N/A self enabled N/A N/A label N/A str N/A self label N/A N/A label N/A %s (disabled) N/A self label N/A label N/A %s:%s N/A N/A N/A self __class__ __name__ label N/A components N/A N/A N/A <%s {%s}> N/A label N/A N/A , join components N/A N/A N/A <%s> label N/A url N/A N/A self extension N/A None kwargs N/A N/A 
            Return the target URL for this item, doesn't check permissions

            @param extension: override the format extension
            @param kwargs: override URL query vars
         N/A N/A N/A self link N/A N/A None N/A N/A self override_url N/A N/A N/A self override_url N/A args N/A self args N/A N/A self vars N/A N/A link_vars N/A Storage N/A self vars N/A N/A N/A link_vars update kwargs N/A N/A link_vars N/A Storage kwargs N/A N/A extension None N/A N/A extension N/A self extension N/A a N/A N/A self get application N/A N/A a None N/A N/A a N/A N/A current request application N/A c N/A N/A self get controller N/A N/A c None N/A N/A c default N/A f N/A N/A self get function N/A N/A f None N/A N/A f index N/A N/A f args N/A N/A self __format f args extension N/A N/A URL a a c c f f args args vars link_vars N/A accessible_url N/A N/A self extension N/A None kwargs N/A N/A 
            Return the target URL for this item if accessible by the
            current user, otherwise False

            @param extension: override the format extension
            @param kwargs: override URL query vars
         N/A aURL N/A N/A N/A current auth permission accessible_url N/A N/A N/A self link N/A N/A None N/A args N/A self args N/A N/A self vars N/A N/A link_vars N/A Storage N/A self vars N/A N/A N/A link_vars update kwargs N/A N/A link_vars N/A Storage kwargs N/A N/A extension None N/A N/A extension N/A self extension N/A a N/A N/A self get application N/A N/A a None N/A N/A a N/A N/A current request application N/A c N/A N/A self get controller N/A N/A c None N/A N/A c default N/A f N/A N/A self get function N/A N/A f None N/A N/A f index N/A N/A f args N/A N/A self __format f args extension N/A N/A aURL c c f f p N/A self p a a t N/A self tablename args args vars link_vars N/A __format N/A N/A f args ext N/A N/A N/A 
            Append the format extension to the last argument

            @param f: the function
            @param args: argument list
            @param ext: the format extension

            @return: tuple (f, args)
         N/A N/A N/A ext N/A ext html N/A N/A N/A f args N/A items N/A f N/A args N/A N/A items args N/A items N/A N/A N/A N/A i rsplit . 1 N/A 0 N/A i items N/A N/A N/A items append N/A %s.%s N/A N/A N/A items pop ext N/A N/A N/A items N/A 0 N/A items N/A 1 N/A staticmethod render N/A N/A self request N/A None N/A N/A 
            Perform the checks and render this item.

            @param request: the request object (defaults to current.request)
         N/A renderer N/A self renderer N/A output None N/A N/A request None N/A N/A request N/A current request N/A N/A N/A self check_active request N/A N/A N/A self authorized N/A N/A self check_permission N/A N/A self selected N/A N/A self check_selected N/A cond N/A N/A self check_hook N/A cond N/A N/A enabled N/A N/A self check_enabled N/A N/A enabled N/A N/A N/A self enabled False N/A N/A renderer None N/A N/A output N/A renderer self N/A output N/A render_components N/A N/A self N/A N/A N/A 
            Render the components of this item and return the results as list
         N/A items N/A N/A c N/A self components N/A N/A i N/A N/A c render N/A N/A i None N/A N/A N/A N/A type i list N/A N/A N/A N/A items extend i N/A N/A N/A N/A items append i N/A items N/A xml N/A N/A self N/A N/A N/A 
            Invokes the renderer and serializes the output for the web2py
            template parser, returns a string to be written to the response
            body, uses the xml() method of the renderer output, if present.
         N/A output N/A N/A self render N/A N/A output None N/A N/A N/A N/A N/A hasattr output xml N/A N/A N/A N/A output xml N/A N/A N/A str output N/A set_parent N/A N/A self p i N/A None None N/A N/A 
            Set a parent for this item, base method for tree construction

            @param p: the parent
            @param i: the list index where to insert the item
         N/A N/A p None N/A N/A p N/A self parent N/A N/A p None N/A N/A N/A parent N/A self parent N/A N/A N/A parent None N/A parent p N/A N/A N/A self N/A parent components N/A N/A N/A N/A N/A parent components remove self N/A N/A i None N/A N/A N/A N/A N/A p component insert i self N/A N/A N/A N/A N/A p components append self N/A N/A self parent p N/A N/A append N/A N/A self item N/A None N/A N/A 
            Append a component

            @param item: the component
         N/A N/A item None N/A N/A N/A N/A type item list N/A N/A i item N/A N/A N/A N/A self append i N/A N/A N/A N/A item set_parent self N/A self N/A insert N/A N/A self i item N/A None N/A N/A 
            Insert a component item at position i

            @param i: the index position
            @param item: the component item
         N/A N/A item None N/A N/A N/A N/A item set_parent self i i N/A self N/A extend N/A N/A self items N/A N/A N/A 
            Extend this item with a list of components

            @param items: list of component items
         N/A items N/A N/A item items N/A N/A N/A N/A self append item N/A self N/A __call__ N/A N/A self N/A components N/A N/A 
            Convenience shortcut for extend

            @param components: list of components
         N/A N/A N/A self extend components N/A self N/A __add__ N/A N/A self items N/A N/A N/A 
            Append component items to this item

            @param items: the items to append
         N/A N/A isinstance items N/A list tuple N/A N/A N/A N/A self extend items N/A N/A N/A N/A self append items N/A self N/A __getitem__ N/A N/A self i N/A N/A N/A 
            Get the component item at position i

            @param i: the index of the component item
         N/A N/A N/A N/A self components __getitem__ i N/A __setitem__ N/A N/A self i item N/A N/A N/A 
            Overwrite the component item at position i with item

            @param i: the index within the component list
            @param item: the item
         N/A N/A N/A N/A self components __setitem__ i item N/A pop N/A N/A self i N/A -1 N/A N/A 
            Return the component at index i and remove it from the list

            @param i: the component index
         N/A N/A N/A N/A self components pop i N/A get_root N/A N/A self N/A N/A N/A 
            Get the top level item of this navigation tree
         N/A parent N/A self parent N/A parent N/A N/A N/A N/A parent get_root N/A N/A self N/A path N/A N/A self sub N/A None N/A N/A 
            Get the full path to this item (=a list of items from the root
            item down to this item).
         N/A path N/A self N/A sub N/A N/A N/A N/A path extend sub N/A N/A self parent N/A N/A N/A N/A N/A self parent path sub path N/A N/A path N/A get_all N/A N/A self N/A flags N/A N/A 
            Get all components with these flags

            @param flags: dictionary of flags
         N/A items N/A N/A item N/A self components N/A N/A N/A N/A flags N/A all N/A N/A N/A getattr item f N/A flags N/A f N/A f flags N/A N/A N/A N/A items append item N/A items N/A get_first N/A N/A self N/A flags N/A N/A 
            Get the first component item with these flags

            @param flags: dictionary of flags
         N/A item N/A self components N/A N/A N/A N/A flags N/A all N/A N/A N/A getattr item f N/A flags N/A f N/A f flags N/A N/A item N/A None N/A get_last N/A N/A self N/A flags N/A N/A 
            Get the first component item with these flags

            @param flags: dictionary of flags
         N/A components N/A list N/A self components N/A N/A N/A components reverse N/A item components N/A N/A N/A N/A flags N/A all N/A N/A N/A getattr item f N/A flags N/A f N/A f flags N/A N/A item N/A None N/A __len__ N/A N/A self N/A N/A N/A  The total number of components of this item  N/A N/A len N/A self components N/A __nonzero__ N/A N/A self N/A N/A N/A 
            To be used instead of __len__ to determine the boolean value
            if this item, should always return True for instances
         N/A N/A self None N/A index N/A N/A self item N/A N/A N/A 
            Get the index of a component item within the component list

            @param item: the item
         N/A N/A N/A N/A self components index item N/A pos N/A N/A self N/A N/A N/A 
            Get the position of this item within the parent's component
            list, reverse method for index()
         N/A N/A self parent N/A N/A N/A N/A N/A self parent index self N/A N/A None N/A is_first N/A N/A self N/A flags N/A N/A 
            Check whether this is the first item within the parent's
            components list with these flags

            @param flags: dictionary of flags
         N/A N/A flags N/A N/A N/A N/A len N/A N/A self preceding 0 N/A N/A N/A all N/A N/A N/A getattr self f N/A flags N/A f N/A f flags N/A N/A False N/A preceding N/A N/A self preceding N/A preceding N/A N/A item preceding N/A N/A N/A all N/A N/A N/A getattr item f N/A flags N/A f N/A f flags N/A N/A False N/A True N/A is_last N/A N/A self N/A flags N/A N/A 
            Check whether this is the last item within the parent's
            components list with these flags

            @param flags: dictionary of flags
         N/A N/A flags N/A N/A N/A N/A len N/A N/A self following 0 N/A N/A N/A all N/A N/A N/A getattr self f N/A flags N/A f N/A f flags N/A N/A False N/A following N/A N/A self following N/A following N/A N/A item following N/A N/A N/A all N/A N/A N/A getattr item f N/A flags N/A f N/A f flags N/A N/A False N/A True N/A preceding N/A N/A self N/A N/A N/A  Get the preceding siblings within the parent's component list  N/A parent N/A self parent N/A parent N/A N/A pos N/A N/A self pos N/A N/A pos None N/A N/A N/A N/A parent components N/A pos N/A N/A N/A following N/A N/A self N/A N/A N/A  Get the following siblings within the parent's component list  N/A parent N/A self parent N/A parent N/A N/A items N/A parent components N/A pos N/A N/A self pos N/A N/A pos None N/A N/A pos N/A pos 1 N/A N/A pos N/A len items N/A N/A N/A items N/A pos N/A N/A N/A get_prev N/A N/A self N/A flags N/A N/A 
            Get the previous item in the parent's component list with these
            flags

            @param flags: dictionary of flags
         N/A preceding N/A N/A self preceding N/A N/A N/A preceding reverse N/A item preceding N/A N/A N/A N/A flags N/A all N/A N/A N/A getattr item f N/A flags N/A f N/A f flags N/A N/A item N/A None N/A get_next N/A N/A self N/A flags N/A N/A 
            Get the next item in the parent's component list with these flags

            @param flags: dictionary of flags
         N/A following N/A N/A self following N/A item following N/A N/A N/A N/A flags N/A all N/A N/A N/A getattr item f N/A flags N/A f N/A f flags N/A N/A item N/A None N/A N/A s3_rheader_resource N/A N/A r N/A N/A N/A 
        Identify the tablename and record ID for the rheader

        @param r: the current S3Request

     N/A _vars N/A r get_vars N/A N/A viewing _vars N/A N/A N/A N/A N/A tablename record_id N/A N/A N/A _vars viewing rsplit . 1 N/A db N/A current db N/A record N/A N/A db N/A tablename N/A record_id N/A N/A N/A N/A tablename N/A r tablename N/A record N/A r record N/A N/A tablename N/A r tablename N/A record N/A r record N/A N/A tablename record N/A s3_rheader_tabs N/A N/A r tabs N/A None N/A N/A 
        Constructs a DIV of component links for a S3RESTRequest

        @param tabs: the tabs as list of tuples (title, component_name, vars),
                     where vars is optional
     N/A rheader_tabs N/A S3ComponentTabs tabs N/A N/A N/A rheader_tabs render r N/A S3ComponentTabs N/A object N/A N/A  Class representing a row of component tabs  __init__ N/A N/A self tabs N/A None N/A N/A 
            Constructor

            @param tabs: the tabs configuration as list of names or tuples
                         (label, name)
         N/A N/A tabs N/A N/A N/A self tabs N/A N/A N/A N/A self tabs N/A N/A S3ComponentTab t N/A t tabs t N/A render N/A N/A self r N/A N/A N/A 
            Render the tabs row

            @param r: the S3Request
         N/A rheader_tabs N/A N/A tabs N/A tuple N/A t N/A t N/A self tabs N/A N/A t active r N/A mtab False N/A N/A N/A r component None N/A N/A t tabs N/A N/A N/A N/A t component N/A r method N/A N/A mtab True N/A N/A record_id N/A r id N/A N/A N/A record_id N/A r record N/A N/A record_id N/A N/A r record N/A N/A N/A r table _id N/A N/A i tab N/A enumerate tabs N/A N/A vars_match N/A N/A tab vars_match r N/A vars_match N/A N/A _vars N/A Storage N/A r get_vars N/A N/A _vars N/A Storage N/A tab vars N/A N/A viewing N/A r get_vars N/A N/A N/A _vars viewing N/A N/A r get_vars viewing N/A N/A N/A tab function None N/A N/A N/A viewing _vars N/A N/A N/A tablename record_id N/A N/A N/A _vars viewing split . 1 N/A function N/A N/A N/A tablename split _ 1 N/A 1 N/A N/A function N/A r function N/A N/A function N/A tab function N/A component N/A tab component N/A here False N/A N/A N/A function N/A r name N/A function N/A r function N/A N/A here N/A N/A N/A r method component N/A mtab N/A component N/A N/A N/A N/A r component N/A N/A N/A r component alias component vars_match N/A N/A here True N/A N/A N/A N/A N/A r component N/A N/A r method component N/A N/A here True N/A N/A here False N/A N/A N/A N/A r component N/A vars_match N/A N/A here False N/A here N/A N/A _class tab_here N/A N/A N/A i N/A N/A len tabs 1 N/A N/A _class tab_last N/A N/A _class tab_other N/A component N/A N/A record_id N/A N/A args N/A record_id component N/A N/A args N/A component N/A N/A viewing _vars N/A N/A N/A _vars N/A viewing N/A _href N/A URL function args args vars _vars N/A _id N/A rheader_tab_%s component N/A N/A args N/A N/A N/A N/A function N/A r name N/A N/A tab native N/A N/A N/A N/A viewing _vars N/A r id N/A N/A N/A N/A _vars update viewing N/A %s.%s N/A N/A r tablename N/A r id N/A N/A N/A N/A N/A tab component N/A N/A tab function N/A N/A N/A viewing _vars N/A N/A N/A _vars N/A viewing N/A args N/A record_id N/A N/A N/A N/A viewing _vars record_id N/A N/A args N/A record_id N/A _href N/A URL function args args vars _vars N/A _id N/A rheader_tab_%s function N/A N/A N/A rheader_tabs append N/A SPAN N/A A N/A tab title _href _href _id _id _class _class N/A rheader_tabs N/A N/A rheader_tabs N/A DIV rheader_tabs _class tabs N/A N/A rheader_tabs N/A rheader_tabs N/A N/A S3ComponentTab N/A object N/A N/A  Class representing a single Component Tab  __init__ N/A N/A self tab N/A N/A N/A 
            Constructor

            @param tab: the component tab configuration as tuple
                        (label, component_alias, {get_vars}), where the
                        get_vars dict is optional.
         N/A N/A title component N/A tab N/A 2 N/A N/A component N/A N/A N/A component find / 0 N/A N/A N/A function component N/A N/A component split / 1 N/A N/A function None N/A N/A self title title N/A N/A self native False N/A function N/A N/A N/A self function function N/A N/A N/A self function None N/A component N/A N/A N/A self component component N/A N/A N/A self component None N/A N/A N/A len tab 2 N/A N/A vars N/A self vars N/A Storage N/A tab N/A 2 N/A N/A native vars N/A N/A N/A self native N/A N/A vars N/A native True False N/A N/A vars N/A native N/A N/A N/A self vars None N/A active N/A N/A self r N/A N/A N/A 
            Check whether the this tab is active

            @param r: the S3Request
         N/A s3db N/A current s3db N/A get_components N/A s3db get_components N/A get_method N/A s3db get_method N/A get_vars N/A r get_vars N/A tablename None N/A N/A viewing get_vars N/A N/A N/A N/A tablename N/A N/A N/A N/A get_vars N/A viewing split . 1 N/A 0 N/A N/A N/A N/A N/A resource N/A r resource N/A component N/A self component N/A component N/A N/A clist N/A get_components N/A resource table names N/A component N/A is_component False N/A N/A component clist N/A N/A is_component True N/A N/A tablename N/A N/A clist N/A get_components tablename names N/A component N/A N/A component clist N/A N/A is_component True N/A is_component N/A N/A N/A N/A self authorised N/A clist N/A component N/A handler N/A get_method N/A resource prefix N/A resource name method component N/A N/A N/A handler None tablename N/A N/A N/A prefix name N/A N/A tablename split _ 1 N/A handler N/A get_method prefix name method component N/A N/A handler None N/A N/A handler N/A N/A r get_handler component N/A N/A handler None N/A N/A N/A component N/A create read update delete N/A True N/A authorised N/A N/A self hook N/A N/A N/A 
            Check permissions for component tabs (in order to deactivate
            tabs the user is not permitted to access)

            @param hook: the component hook
         N/A READ read N/A has_permission N/A N/A current auth s3_has_permission N/A N/A N/A hook linktable N/A N/A has_permission READ N/A hook linktable N/A N/A False N/A N/A has_permission READ N/A hook tablename N/A N/A True N/A False N/A vars_match N/A N/A self r N/A N/A N/A 
            Check whether the request GET vars match the GET vars in
            the URL of this tab

            @param r: the S3Request
         N/A get_vars N/A r get_vars N/A N/A N/A self vars None N/A N/A True N/A N/A k v N/A N/A N/A self vars iteritems N/A N/A N/A v None N/A N/A N/A N/A N/A k get_vars N/A N/A k get_vars N/A N/A get_vars N/A k v N/A N/A False N/A True N/A N/A S3ScriptItem N/A S3NavigationItem N/A N/A 
        Simple Navigation Item just for injecting scripts into HTML forms
     __init__ N/A N/A self script N/A None attributes N/A N/A 
            @param script: script to inject into jquery_ready when rendered
         N/A N/A self script script N/A N/A N/A N/A super S3ScriptItem self __init__ attributes N/A xml N/A N/A self N/A N/A N/A 
            Injects associated script into jquery_ready.
         N/A N/A self script N/A N/A N/A N/A N/A N/A N/A current response s3 jquery_ready append N/A self script N/A N/A inline N/A N/A item N/A N/A N/A 
            Present to ensure that script injected even in inline forms
         N/A N/A staticmethod N/A S3ResourceHeader N/A N/A N/A  Simple Generic Resource Header for tabbed component views  __init__ N/A N/A self fields tabs N/A None None N/A N/A 
            Constructor

            @param fields: the fields to display as list of lists of
                           fieldnames, Field instances or callables
            @param tabs: the tabs

            Fields are specified in order rows->cols, i.e. if written
            like:

            [
                ["fieldA", "fieldF", "fieldX"],
                ["fieldB", None, "fieldY"]
            ]

            then that's exactly the screen order. Row or column spans are
            not supported - empty fields will be rendered as empty fields.
            If you need to construct more complex rheaders, you should
            implement a custom method.

            Fields can be specified by field names, Field instances or
            as callables. Where a field specifier is a callable, it will
            be invoked with the record as parameter and is respected to
            return the representation value.

            Where a field specifier is a tuple of two items, the first
            item is taken for the label (overriding the field label, if
            any), like in:


            [
                [(T("Name"), s3_fullname)],
                ...
            ]

            Where the second item is a callable, it maybe necessary to
            specify a label.

            If you don't want any fields, specify this explicitly as:

                rheader = S3ResourceHeader(fields=[])

            Where you don't specify any fields and the table contains a
            "name" field, the rheader defaults to: [["name"]].
         N/A N/A self fields fields N/A N/A self tabs tabs N/A __call__ N/A N/A self r tabs table record as_div N/A None None None True N/A N/A 
            Return the HTML representation of this rheader

            @param r: the S3Request instance to render the header for
            @param tabs: the tabs (overrides the original tabs definition)
            @param table: override r.table
            @param record: override r.record
            @param as_div: True: will return the rheader_fields and the
                           rheader_tabs together as a DIV
                           False will return the rheader_fields and the
                           rheader_tabs as a tuple
                           (rheader_fields, rheader_tabs)
         N/A N/A table None N/A N/A table N/A r table N/A N/A record None N/A N/A record N/A r record N/A N/A tabs None N/A N/A tabs N/A self tabs N/A N/A N/A N/A self fields None N/A name N/A table fields N/A N/A fields N/A N/A name N/A N/A fields N/A self fields N/A record N/A N/A N/A tabs None N/A N/A rheader_tabs N/A s3_rheader_tabs r tabs N/A N/A rheader_tabs N/A trs N/A N/A row fields N/A N/A tr N/A TR N/A col row N/A N/A field None N/A label N/A value N/A N/A N/A isinstance col N/A tuple list N/A N/A len col 2 N/A N/A N/A label f col N/A N/A f col N/A N/A callable f N/A N/A N/A N/A value N/A f record N/A N/A N/A N/A N/A N/A N/A isinstance f str N/A N/A fn f N/A N/A . fn N/A N/A fn N/A N/A N/A f split . 1 N/A 1 N/A N/A N/A fn record N/A fn table N/A N/A N/A field N/A table N/A fn N/A value N/A record N/A fn N/A N/A callable value N/A N/A value N/A value N/A N/A N/A N/A isinstance f Field N/A N/A f name record N/A N/A field f N/A value N/A record N/A N/A f name N/A N/A field None N/A N/A N/A label N/A N/A label N/A field label N/A N/A N/A hasattr field represent N/A N/A field represent None N/A N/A value N/A N/A field represent value N/A N/A label None N/A N/A N/A N/A tr append N/A TH N/A %s:  label N/A v value N/A N/A N/A N/A isinstance v basestring N/A N/A isinstance value DIV N/A N/A N/A N/A v N/A unicode v N/A N/A N/A N/A N/A N/A N/A tr append N/A TD v N/A N/A N/A trs append tr N/A as_div N/A N/A rheader N/A DIV N/A TABLE trs rheader_tabs N/A N/A rheader N/A N/A TABLE trs rheader_tabs N/A rheader N/A None N/A N/A