Module Expr Str ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body Import alias Import alias Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Dict Str Str AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Str Dict Str Str AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Str Dict Str Str Str Str Str Dict Str Str AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str Dict Str Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Dict Str Str BinOpBitOr BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Dict Str Str Dict Str Str Str Num Dict Str Str Str Num Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict NameLoad NameLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr BinOpBitOr AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Assign AttributeStore NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body If Call NameLoad NameLoad NameLoad body Return SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Index Str orelse Return NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Return SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Index Str handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Return SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Index Str handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Return SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Index Str handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Expr Call AttributeLoad NameLoad attr Num NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict TryExcept body Assign NameStore IfExp NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Return TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Dict Str Str NameLoad ListLoad Assign NameStore Call NameLoad NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Return NameLoad If BoolOpAnd NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body For NameStore Call NameLoad Num Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpOr UnaryOpNot SubscriptLoad NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str Str NameLoad Dict Str If BoolOpAnd NameLoad NameLoad NameLoad NameLoad NameLoad body If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Assign NameStore ListLoad TryExcept body If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Str orelse If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad If NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Dict Str Str Str NameLoad Dict Str If BoolOpAnd NameLoad NameLoad body Assign NameStore Call NameLoad If BoolOpAnd NameLoad CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore IfExp NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad If SubscriptLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Index Str body Assign NameStore Call NameLoad NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Return NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Num Assign NameStore ListLoad While CompareLt NameLoad Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq BinOpBitAnd SubscriptLoad SubscriptLoad NameLoad Index Num Index Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Str body If BoolOpOr UnaryOpNot NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Num NameLoad body If BoolOpOr UnaryOpNot NameLoad CompareEq BinOpBitAnd SubscriptLoad SubscriptLoad NameLoad Index Num Index Num NameLoad NameLoad body If BoolOpOr UnaryOpNot NameLoad CompareEq SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Num If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad orelse Assign SubscriptStore NameLoad Index Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num If SubscriptLoad NameLoad Index Num body Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num orelse Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore Str For NameStore AttributeLoad NameLoad attr body If CompareEq SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str NameLoad body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str Break For NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body If CompareEq SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Index Str NameLoad body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Index Str Break If CompareEq BinOpBitAnd NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore BinOpBitXor NameLoad AttributeLoad NameLoad attr For NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body If CompareEq SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Index Str NameLoad body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Index Str Break Return Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Dict Str Str Str NameLoad Str Dict If NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body If NameLoad body Assign NameStore Num Assign NameStore ListLoad While CompareLt NameLoad Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq BinOpBitAnd SubscriptLoad SubscriptLoad NameLoad Index Num Index Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad orelse Assign NameStore BinOpAdd NameLoad Num If NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad orelse Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str orelse If UnaryOpNot NameLoad body Assign NameStore Num Assign NameStore ListLoad While CompareLt NameLoad Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq BinOpBitAnd SubscriptLoad SubscriptLoad NameLoad Index Num Index Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad orelse Assign NameStore BinOpAdd NameLoad Num If NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad orelse Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Dict Str Str Str NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Return NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad For NameStore Call NameLoad Num Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq BinOpBitAnd SubscriptLoad SubscriptLoad NameLoad Index Num Index Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If BoolOpOr UnaryOpNot SubscriptLoad NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Dict Str Str Str NameLoad NameLoad Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Return NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body For NameStore Call NameLoad Num Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Str body If BoolOpOr UnaryOpNot NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Num NameLoad body If BoolOpOr UnaryOpNot NameLoad CompareEq BinOpBitAnd SubscriptLoad SubscriptLoad NameLoad Index Num Index Num NameLoad NameLoad body If UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad If NameLoad body If CompareEq SubscriptLoad NameLoad Index Num NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad orelse If CompareEq BinOpBitAnd SubscriptLoad NameLoad Index Num NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad orelse Assign SubscriptStore NameLoad Index Str Str Return NameLoad decorator_list
N/A N/A 
Manage DACLs on Windows

:depends:   - winreg Python module
 __future__ absolute_import N/A os N/A logging N/A salt.utils salt.exceptions CommandExecutionError salt.ext.six string_types salt.ext.six.moves range N/A N/A N/A salt.ext.six.moves.winreg N/A win32security N/A ntsecuritycon N/A HAS_WINDOWS_MODULES True N/A N/A N/A ImportError N/A N/A HAS_WINDOWS_MODULES False N/A log N/A N/A logging getLogger __name__ N/A __virtualname__ win_dacl daclConstants N/A object N/A N/A 
    dacl constants used throughout the module
     __init__ N/A N/A self N/A N/A N/A N/A self FILE_ALL_ACCESS N/A N/A N/A ntsecuritycon STANDARD_RIGHTS_REQUIRED N/A ntsecuritycon SYNCHRONIZE 511 N/A N/A self hkeys_security N/A HKEY_LOCAL_MACHINE HKEY_USERS HKEY_CURRENT_USER HKEY_CLASSES_ROOT MACHINE USERS CURRENT_USER CLASSES_ROOT HKLM HKU HKCU HKCR MACHINE USERS CURRENT_USER CLASSES_ROOT MACHINE USERS CURRENT_USER CLASSES_ROOT MACHINE USERS CURRENT_USER CLASSES_ROOT N/A N/A self rights N/A N/A win32security SE_REGISTRY_KEY N/A win32security SE_FILE_OBJECT N/A READ FULLCONTROL N/A BITS TEXT N/A N/A N/A N/A N/A salt ext six moves winreg KEY_READ read N/A BITS TEXT N/A N/A N/A N/A N/A salt ext six moves winreg KEY_ALL_ACCESS full control N/A READ WRITE READ&EXECUTE MODIFY FULLCONTROL N/A BITS TEXT N/A ntsecuritycon FILE_GENERIC_READ read N/A BITS TEXT N/A ntsecuritycon FILE_GENERIC_WRITE write N/A BITS TEXT N/A N/A ntsecuritycon FILE_GENERIC_EXECUTE N/A ntsecuritycon FILE_GENERIC_READ read and execute N/A BITS TEXT N/A N/A N/A N/A ntsecuritycon FILE_GENERIC_WRITE N/A ntsecuritycon FILE_GENERIC_READ N/A ntsecuritycon FILE_GENERIC_EXECUTE N/A ntsecuritycon DELETE modify N/A BITS TEXT N/A self FILE_ALL_ACCESS full control N/A N/A self validAceTypes N/A ALLOW DENY N/A TEXT BITS allowed 0 N/A TEXT BITS denied 1 N/A N/A self validPropagations N/A N/A win32security SE_REGISTRY_KEY N/A win32security SE_FILE_OBJECT N/A KEY KEY&SUBKEYS SUBKEYS THIS KEY ONLY THIS KEY AND SUBKEYS SUBKEYS ONLY N/A TEXT BITS this key only N/A win32security NO_INHERITANCE N/A TEXT BITS this key and subkeys N/A win32security CONTAINER_INHERIT_ACE N/A TEXT BITS subkeys only N/A N/A win32security INHERIT_ONLY_ACE N/A win32security CONTAINER_INHERIT_ACE N/A TEXT BITS this key only N/A win32security NO_INHERITANCE N/A TEXT BITS this key and subkeys N/A win32security CONTAINER_INHERIT_ACE N/A TEXT BITS subkeys only N/A N/A win32security INHERIT_ONLY_ACE N/A win32security CONTAINER_INHERIT_ACE N/A FILE FOLDER FOLDER&SUBFOLDERS&FILES FOLDER&SUBFOLDERS FOLDER&FILES SUBFOLDERS&FILES SUBFOLDERS FILES THIS FILE ONLY THIS FOLDER ONLY THIS FOLDER, SUBFOLDERS, AND FILES THIS FOLDER AND SUBFOLDERS THIS FOLDER AND FILES SUBFOLDERS AND FILES SUBFOLDERS ONLY FILES ONLY N/A TEXT BITS this file/folder only N/A win32security NO_INHERITANCE N/A TEXT BITS this file/folder only N/A win32security NO_INHERITANCE N/A TEXT BITS this folder, subfolders, and files N/A N/A win32security CONTAINER_INHERIT_ACE N/A win32security OBJECT_INHERIT_ACE N/A TEXT BITS this folder and subfolders N/A win32security CONTAINER_INHERIT_ACE N/A TEXT BITS this folder and files N/A win32security OBJECT_INHERIT_ACE N/A TEXT BITS subfolders and files N/A N/A N/A win32security INHERIT_ONLY_ACE N/A win32security CONTAINER_INHERIT_ACE N/A win32security OBJECT_INHERIT_ACE N/A TEXT BITS subfolders only N/A N/A win32security INHERIT_ONLY_ACE N/A win32security CONTAINER_INHERIT_ACE N/A TEXT BITS files only N/A N/A win32security INHERIT_ONLY_ACE N/A win32security OBJECT_INHERIT_ACE N/A TEXT BITS this file/folder only N/A win32security NO_INHERITANCE N/A TEXT BITS this file/folder only N/A win32security NO_INHERITANCE N/A TEXT BITS this folder, subfolders, and files N/A N/A win32security CONTAINER_INHERIT_ACE N/A win32security OBJECT_INHERIT_ACE N/A TEXT BITS this folder and subfolders N/A win32security CONTAINER_INHERIT_ACE N/A TEXT BITS this folder and files N/A win32security OBJECT_INHERIT_ACE N/A TEXT BITS subfolders and files N/A N/A N/A win32security INHERIT_ONLY_ACE N/A win32security CONTAINER_INHERIT_ACE N/A win32security OBJECT_INHERIT_ACE N/A TEXT BITS subfolders only N/A N/A win32security INHERIT_ONLY_ACE N/A win32security CONTAINER_INHERIT_ACE N/A TEXT BITS files only N/A N/A win32security INHERIT_ONLY_ACE N/A win32security OBJECT_INHERIT_ACE N/A N/A self reflection_mask N/A True False N/A N/A N/A N/A N/A salt ext six moves winreg KEY_ALL_ACCESS N/A N/A N/A N/A N/A N/A salt ext six moves winreg KEY_ALL_ACCESS N/A N/A N/A N/A N/A salt ext six moves winreg KEY_WOW64_64KEY N/A N/A self objectType N/A FILE DIRECTORY REGISTRY N/A win32security SE_FILE_OBJECT N/A win32security SE_FILE_OBJECT N/A win32security SE_REGISTRY_KEY N/A getObjectTypeBit N/A N/A self t N/A N/A N/A 
        returns the bit value of the string object type
         N/A N/A isinstance t string_types N/A N/A t N/A N/A t upper N/A N/A N/A N/A N/A self objectType N/A t N/A N/A N/A KeyError N/A N/A N/A CommandExecutionError N/A N/A Invalid object type "{0}".  It should be one of the following:  {1} format t N/A N/A ,  join N/A self objectType N/A N/A t N/A getSecurityHkey N/A N/A self s N/A N/A N/A 
        returns the necessary string value for an HKEY for the win32security module
         N/A N/A N/A N/A N/A self hkeys_security N/A s N/A N/A N/A KeyError N/A N/A N/A CommandExecutionError N/A N/A No HKEY named "{0}".  It should be one of the following:  {1} format s N/A N/A ,  join N/A self hkeys_security N/A getPermissionBit N/A N/A self t m N/A N/A N/A 
        returns a permission bit of the string permission value for the specified object type
         N/A N/A N/A N/A isinstance m string_types N/A N/A N/A N/A N/A N/A self rights N/A t N/A m N/A BITS N/A N/A m N/A N/A N/A KeyError N/A N/A N/A CommandExecutionError N/A N/A No right "{0}".  It should be one of the following:  {1} format m N/A N/A ,  join N/A N/A self rights N/A t N/A getPermissionText N/A N/A self t m N/A N/A N/A 
        returns the permission textual representation of a specified permission bit/object type
         N/A N/A N/A N/A N/A N/A N/A self rights N/A t N/A m N/A TEXT N/A N/A N/A KeyError N/A N/A N/A CommandExecutionError N/A N/A No right "{0}".  It should be one of the following:  {1} format m N/A N/A ,  join N/A N/A self rights N/A t N/A getAceTypeBit N/A N/A self t N/A N/A N/A 
        returns the acetype bit of a text value
         N/A N/A N/A N/A N/A N/A self validAceTypes N/A t N/A BITS N/A N/A N/A KeyError N/A N/A N/A CommandExecutionError N/A N/A No ACE type "{0}".  It should be one of the following:  {1} format t N/A N/A ,  join N/A self validAceTypes N/A getAceTypeText N/A N/A self t N/A N/A N/A 
        returns the textual representation of a acetype bit
         N/A N/A N/A N/A N/A N/A self validAceTypes N/A t N/A TEXT N/A N/A N/A KeyError N/A N/A N/A CommandExecutionError N/A N/A No ACE type "{0}".  It should be one of the following:  {1} format t N/A N/A ,  join N/A self validAceTypes N/A getPropagationBit N/A N/A self t p N/A N/A N/A 
        returns the propagation bit of a text value
         N/A N/A N/A N/A N/A N/A N/A self validPropagations N/A t N/A p N/A BITS N/A N/A N/A KeyError N/A N/A N/A CommandExecutionError N/A N/A No propagation type of "{0}".  It should be one of the following:  {1} format p N/A N/A ,  join N/A N/A self validPropagations N/A t N/A getPropagationText N/A N/A self t p N/A N/A N/A 
        returns the textual representation of a propagation bit
         N/A N/A N/A N/A N/A N/A N/A self validPropagations N/A t N/A p N/A TEXT N/A N/A N/A KeyError N/A N/A N/A CommandExecutionError N/A N/A No propagation type of "{0}".  It should be one of the following:  {1} format p N/A N/A ,  join N/A N/A self validPropagations N/A t N/A processPath N/A N/A self path objectType N/A N/A N/A 
        processes a path/object type combo and returns:
            registry types with the correct HKEY text representation
            files/directories with environment variables expanded
         N/A N/A objectType N/A win32security SE_REGISTRY_KEY N/A N/A splt N/A N/A path split \ N/A hive N/A N/A self getSecurityHkey N/A N/A N/A N/A splt pop 0 upper N/A N/A N/A splt insert 0 hive N/A path N/A N/A \\ join splt N/A N/A path N/A N/A N/A os path expandvars path N/A path N/A N/A _getUserSid N/A N/A user N/A N/A N/A 
    return a state error dictionary, with 'sid' as a field if it could be returned
    if user is None, sid will also be None
     N/A ret N/A N/A N/A N/A sid N/A user N/A N/A N/A win32security LookupAccountName user N/A 0 None N/A N/A ret N/A result True N/A N/A ret N/A sid sid N/A N/A N/A Exception N/A e N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A Unable to obtain the security identifier for {0}.  The exception was {1}. format user e N/A ret N/A __virtual__ N/A N/A N/A N/A N/A 
    Only works on Windows systems
     N/A N/A N/A N/A N/A salt utils is_windows HAS_WINDOWS_MODULES N/A N/A __virtualname__ N/A N/A False Module win_dacl: module only works on Windows systems N/A _get_dacl N/A N/A path objectType N/A N/A N/A 
    gets the dacl of a path
     N/A N/A N/A dacl N/A N/A N/A N/A win32security GetNamedSecurityInfo path objectType N/A win32security DACL_SECURITY_INFORMATION GetSecurityDescriptorDacl N/A N/A N/A Exception N/A N/A dacl None N/A dacl N/A get N/A N/A path objectType user N/A None N/A N/A 
    Get the acl of an object. Will filter by user if one is provided.
     N/A ret N/A Path ACLs path N/A N/A sidRet N/A _getUserSid user N/A N/A N/A sidRet N/A result N/A N/A sidRet N/A N/A path objectType N/A N/A dc N/A daclConstants N/A objectTypeBit N/A N/A dc getObjectTypeBit objectType N/A path N/A N/A dc processPath path objectTypeBit N/A tdacl N/A _get_dacl path objectTypeBit N/A tdacl N/A N/A counter N/A range 0 N/A N/A tdacl GetAceCount N/A N/A tAce N/A N/A tdacl GetAce counter N/A N/A N/A N/A sidRet N/A sid N/A N/A tAce N/A 2 N/A sidRet N/A sid N/A N/A N/A N/A N/A ret N/A ACLs append N/A _ace_to_text tAce objectTypeBit N/A ret N/A add_ace N/A N/A path objectType user permission acetype propagation N/A N/A N/A 
    add an ace to an object

    path:  path to the object (i.e. c:\\temp\\file, HKEY_LOCAL_MACHINE\\SOFTWARE\\KEY, etc)
    user: user to add
    permission:  permissions for the user
    acetype:  either allow/deny for each user/permission (ALLOW, DENY)
    propagation: how the ACE applies to children for Registry Keys and Directories(KEY, KEY&SUBKEYS, SUBKEYS)

    CLI Example:

    .. code-block:: bash

        allow domain\fakeuser full control on HKLM\\SOFTWARE\\somekey, propagate to this key and subkeys
            salt 'myminion' win_dacl.add_ace 'HKEY_LOCAL_MACHINE\\SOFTWARE\\somekey' 'Registry' 'domain\fakeuser' 'FULLCONTROL' 'ALLOW' 'KEY&SUBKEYS'
     N/A ret N/A result changes comment None N/A N/A N/A path user permission acetype propagation N/A N/A N/A N/A N/A objectType upper FILE N/A N/A propagation FILE N/A dc N/A daclConstants N/A objectTypeBit N/A N/A dc getObjectTypeBit objectType N/A path N/A N/A dc processPath path objectTypeBit N/A user N/A N/A user strip N/A permission N/A N/A N/A N/A permission strip upper N/A acetype N/A N/A N/A N/A acetype strip upper N/A propagation N/A N/A N/A N/A propagation strip upper N/A sidRet N/A _getUserSid user N/A N/A N/A sidRet N/A result N/A N/A sidRet N/A permissionbit N/A N/A dc getPermissionBit objectTypeBit permission N/A acetypebit N/A N/A dc getAceTypeBit acetype N/A propagationbit N/A N/A dc getPropagationBit objectTypeBit propagation N/A dacl N/A _get_dacl path objectTypeBit N/A dacl N/A N/A acesAdded N/A N/A N/A N/A N/A acetypebit 0 N/A N/A N/A N/A dacl AddAccessAllowedAceEx N/A win32security ACL_REVISION propagationbit permissionbit N/A sidRet N/A sid N/A N/A N/A acetypebit 1 N/A N/A N/A N/A dacl AddAccessDeniedAceEx N/A win32security ACL_REVISION propagationbit permissionbit N/A sidRet N/A sid N/A N/A N/A win32security SetNamedSecurityInfo path objectTypeBit N/A win32security DACL_SECURITY_INFORMATION None None dacl None N/A N/A N/A acesAdded append N/A N/A {0} {1} {2} on {3} format user N/A N/A dc getAceTypeText acetype N/A N/A dc getPermissionText objectTypeBit permission N/A N/A dc getPropagationText objectTypeBit propagation N/A N/A ret N/A result True N/A N/A N/A Exception N/A e N/A N/A N/A ret N/A comment N/A N/A An error occurred attempting to add the ace.  The error was {0} format e N/A N/A ret N/A result False N/A ret N/A acesAdded N/A N/A N/A N/A ret N/A changes N/A Added ACEs acesAdded N/A N/A N/A ret N/A comment N/A N/A Unable to obtain the DACL of {0} format path N/A N/A N/A ret N/A comment An empty value was specified for a required item. N/A N/A ret N/A result False N/A ret N/A rm_ace N/A N/A path objectType user permission acetype propagation N/A None None None N/A N/A 
    remove an ace to an object

    path:  path to the object (i.e. c:\\temp\\file, HKEY_LOCAL_MACHINE\\SOFTWARE\\KEY, etc)
    user: user to remove
    permission:  permissions for the user
    acetypes:  either allow/deny for each user/permission (ALLOW, DENY)
    propagation: how the ACE applies to children for Registry Keys and Directories(KEY, KEY&SUBKEYS, SUBKEYS)

    If any of the optional parameters are omitted (or set to None) they act as wildcards.

    CLI Example:

    .. code-block:: bash

        remove allow domain\fakeuser full control on HKLM\\SOFTWARE\\somekey propagated to this key and subkeys
            salt 'myminion' win_dacl.rm_ace 'Registry' 'HKEY_LOCAL_MACHINE\\SOFTWARE\\somekey' 'domain\fakeuser' 'FULLCONTROL' 'ALLOW' 'KEY&SUBKEYS'
     N/A ret N/A result changes comment None N/A N/A N/A path user N/A N/A dc N/A daclConstants N/A N/A propagation N/A N/A N/A objectType upper FILE N/A N/A propagation FILE N/A objectTypeBit N/A N/A dc getObjectTypeBit objectType N/A path N/A N/A dc processPath path objectTypeBit N/A user N/A N/A user strip N/A permission N/A permission N/A N/A N/A N/A permission strip upper None N/A acetype N/A acetype N/A N/A N/A N/A acetype strip upper None N/A propagation N/A propagation N/A N/A N/A N/A propagation strip upper None N/A N/A N/A check_ace path objectType user permission acetype propagation True N/A Exists N/A N/A sidRet N/A _getUserSid user N/A N/A N/A sidRet N/A result N/A N/A sidRet N/A permissionbit N/A permission N/A N/A dc getPermissionBit objectTypeBit permission None N/A acetypebit N/A acetype N/A N/A dc getAceTypeBit acetype None N/A propagationbit N/A propagation N/A N/A dc getPropagationBit objectTypeBit propagation None N/A dacl N/A _get_dacl path objectTypeBit N/A counter 0 N/A acesRemoved N/A N/A N/A counter N/A N/A dacl GetAceCount N/A N/A tAce N/A N/A dacl GetAce counter N/A N/A N/A N/A N/A tAce N/A 0 N/A 1 N/A win32security INHERITED_ACE N/A win32security INHERITED_ACE N/A N/A N/A N/A tAce N/A 2 N/A sidRet N/A sid N/A N/A N/A N/A acetypebit N/A N/A N/A tAce N/A 0 N/A 0 acetypebit N/A N/A N/A N/A propagationbit N/A N/A N/A N/A tAce N/A 0 N/A 1 propagationbit propagationbit N/A N/A N/A N/A permissionbit N/A N/A tAce N/A 1 permissionbit N/A N/A N/A N/A dacl DeleteAce counter N/A counter N/A counter 1 N/A N/A N/A acesRemoved append N/A _ace_to_text tAce objectTypeBit N/A counter N/A counter 1 N/A acesRemoved N/A N/A N/A N/A N/A N/A win32security SetNamedSecurityInfo path objectTypeBit N/A win32security DACL_SECURITY_INFORMATION None None dacl None N/A N/A N/A ret N/A changes N/A Removed ACEs acesRemoved N/A N/A ret N/A result True N/A N/A N/A Exception N/A e N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A Error removing ACE.  The error was {0}. format e N/A ret N/A N/A N/A ret N/A comment The specified ACE was not found on the path. N/A ret N/A _ace_to_text N/A N/A ace objectType N/A N/A N/A 
    helper function to convert an ace to a textual representation
     N/A dc N/A daclConstants N/A objectType N/A N/A dc getObjectTypeBit objectType N/A N/A N/A userSid N/A N/A win32security LookupAccountSid N/A ace N/A 2 N/A N/A userSid N/A 1 N/A N/A userSid N/A N/A {1}\{0} format N/A userSid N/A 0 N/A userSid N/A 1 N/A N/A userSid N/A N/A {0} format N/A userSid N/A 0 N/A N/A N/A Exception N/A N/A userSid N/A N/A win32security ConvertSidToStringSid N/A ace N/A 2 N/A tPerm N/A ace N/A 1 N/A tAceType N/A N/A ace N/A 0 N/A 0 N/A tProps N/A N/A ace N/A 0 N/A 1 N/A tInherited N/A x N/A dc validAceTypes N/A N/A N/A N/A N/A N/A dc validAceTypes N/A x N/A BITS tAceType N/A N/A tAceType N/A N/A N/A dc validAceTypes N/A x N/A TEXT N/A N/A x N/A N/A dc rights N/A objectType N/A N/A N/A N/A N/A N/A N/A dc rights N/A objectType N/A x N/A BITS tPerm N/A N/A tPerm N/A N/A N/A N/A dc rights N/A objectType N/A x N/A TEXT N/A N/A N/A N/A tProps N/A win32security INHERITED_ACE N/A win32security INHERITED_ACE N/A N/A tInherited [Inherited] N/A tProps N/A tProps N/A win32security INHERITED_ACE N/A x N/A N/A dc validPropagations N/A objectType N/A N/A N/A N/A N/A N/A N/A dc validPropagations N/A objectType N/A x N/A BITS tProps N/A N/A tProps N/A N/A N/A N/A dc validPropagations N/A objectType N/A x N/A TEXT N/A N/A N/A N/A {0} {1} {2} on {3} {4} format userSid tAceType tPerm tProps tInherited N/A _set_dacl_inheritance N/A N/A path objectType inheritance copy clear N/A True True False N/A N/A 
    helper function to set the inheritance
     N/A ret N/A result comment changes False N/A N/A path N/A N/A N/A N/A sd N/A N/A win32security GetNamedSecurityInfo path objectType N/A win32security DACL_SECURITY_INFORMATION N/A tdacl N/A N/A sd GetSecurityDescriptorDacl N/A inheritance N/A N/A clear N/A N/A counter 0 N/A removedAces N/A N/A N/A counter N/A N/A tdacl GetAceCount N/A N/A tAce N/A N/A tdacl GetAce counter N/A N/A N/A N/A N/A tAce N/A 0 N/A 1 N/A win32security INHERITED_ACE N/A win32security INHERITED_ACE N/A N/A N/A N/A tdacl DeleteAce counter N/A N/A N/A removedAces append N/A _ace_to_text tAce objectType N/A N/A counter N/A counter 1 N/A removedAces N/A N/A N/A N/A ret N/A changes N/A Removed ACEs removedAces N/A N/A N/A N/A ret N/A changes N/A Non-Inherited ACEs Left in the DACL N/A N/A N/A win32security SetNamedSecurityInfo path objectType N/A N/A win32security DACL_SECURITY_INFORMATION N/A win32security UNPROTECTED_DACL_SECURITY_INFORMATION None None tdacl None N/A N/A N/A ret N/A changes N/A Inheritance Enabled N/A N/A N/A copy N/A N/A counter 0 N/A inheritedAcesRemoved N/A N/A N/A counter N/A N/A tdacl GetAceCount N/A N/A tAce N/A N/A tdacl GetAce counter N/A N/A N/A N/A N/A tAce N/A 0 N/A 1 N/A win32security INHERITED_ACE N/A win32security INHERITED_ACE N/A N/A N/A N/A tdacl DeleteAce counter N/A N/A N/A inheritedAcesRemoved append N/A _ace_to_text tAce objectType N/A N/A counter N/A counter 1 N/A inheritedAcesRemoved N/A N/A N/A N/A ret N/A changes N/A Removed ACEs inheritedAcesRemoved N/A N/A N/A N/A ret N/A changes N/A Previously Inherited ACEs Copied to the DACL N/A N/A N/A win32security SetNamedSecurityInfo path objectType N/A N/A win32security DACL_SECURITY_INFORMATION N/A win32security PROTECTED_DACL_SECURITY_INFORMATION None None tdacl None N/A N/A N/A ret N/A changes N/A Inheritance Disabled N/A N/A ret N/A result True N/A N/A N/A Exception N/A e N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A Error attempting to set the inheritance.  The error was {0}. format e N/A ret N/A enable_inheritance N/A N/A path objectType clear N/A False N/A N/A 
    enable/disable inheritance on an object

    clear = True will remove non-Inherited ACEs from the ACL
     N/A dc N/A daclConstants N/A objectType N/A N/A dc getObjectTypeBit objectType N/A path N/A N/A dc processPath path objectType N/A N/A _set_dacl_inheritance path objectType True None clear N/A disable_inheritance N/A N/A path objectType copy N/A True N/A N/A 
    disable inheritance on an object

    copy = True will copy the Inerhited ACEs to the DACL before disabling inheritance
     N/A dc N/A daclConstants N/A objectType N/A N/A dc getObjectTypeBit objectType N/A path N/A N/A dc processPath path objectType N/A N/A _set_dacl_inheritance path objectType False copy None N/A check_inheritance N/A N/A path objectType user N/A None N/A N/A 
    check a specified path to verify if inheritance is enabled
    returns 'Inheritance' of True/False

    path: path of the registry key or file system object to check
    user: if provided, will consider only the ACEs for that user
     N/A ret N/A result Inheritance comment False False N/A sidRet N/A _getUserSid user N/A N/A N/A sidRet N/A result N/A N/A sidRet N/A dc N/A daclConstants N/A objectType N/A N/A dc getObjectTypeBit objectType N/A path N/A N/A dc processPath path objectType N/A N/A N/A sd N/A N/A win32security GetNamedSecurityInfo path objectType N/A win32security DACL_SECURITY_INFORMATION N/A dacls N/A N/A sd GetSecurityDescriptorDacl N/A N/A N/A Exception N/A e N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A Error obtaining the Security Descriptor or DACL of the path: {0}. format e N/A ret N/A counter N/A range 0 N/A N/A dacls GetAceCount N/A N/A ace N/A N/A dacls GetAce counter N/A N/A N/A N/A N/A ace N/A 0 N/A 1 N/A win32security INHERITED_ACE N/A win32security INHERITED_ACE N/A N/A N/A N/A N/A sidRet N/A sid N/A N/A ace N/A 2 N/A sidRet N/A sid N/A N/A N/A ret N/A Inheritance True N/A ret N/A N/A ret N/A result True N/A ret N/A check_ace N/A N/A path objectType user permission acetype propagation exactPermissionMatch N/A None None None False N/A N/A 
    checks a path to verify the ACE (access control entry) specified exists
    returns 'Exists' true if the ACE exists, false if it does not

    path:  path to the file/reg key
    user:  user that the ACL is for
    permission:  permission to test for (READ, FULLCONTROl, etc)
    acetype:  the type of ACE (ALLOW or DENY)
    propagation:  the propagation type of the ACE (FILES, FOLDERS, KEY, KEY&SUBKEYS, SUBKEYS, etc)
    exactPermissionMatch:  the ACL must match exactly, IE if READ is specified, the user must have READ exactly and not FULLCONTROL (which also has the READ permission obviously)

     N/A ret N/A result Exists comment False False N/A dc N/A daclConstants N/A objectTypeBit N/A N/A dc getObjectTypeBit objectType N/A path N/A N/A dc processPath path objectTypeBit N/A permission N/A permission N/A N/A permission upper None N/A acetype N/A permission N/A N/A acetype upper None N/A propagation N/A propagation N/A N/A propagation upper None N/A permissionbit N/A permission N/A N/A dc getPermissionBit objectTypeBit permission None N/A acetypebit N/A acetype N/A N/A dc getAceTypeBit acetype None N/A propagationbit N/A propagation N/A N/A dc getPropagationBit objectTypeBit propagation None N/A sidRet N/A _getUserSid user N/A N/A N/A sidRet N/A result N/A N/A sidRet N/A dacls N/A _get_dacl path objectTypeBit N/A N/A ret N/A result True N/A dacls N/A N/A counter N/A range 0 N/A N/A dacls GetAceCount N/A N/A ace N/A N/A dacls GetAce counter N/A N/A N/A ace N/A 2 N/A sidRet N/A sid N/A N/A N/A N/A acetypebit N/A N/A N/A ace N/A 0 N/A 0 acetypebit N/A N/A N/A N/A propagationbit N/A N/A N/A N/A ace N/A 0 N/A 1 propagationbit propagationbit N/A N/A N/A permissionbit N/A N/A N/A ret N/A Exists True N/A ret N/A exactPermissionMatch N/A N/A N/A N/A ace N/A 1 permissionbit N/A N/A N/A ret N/A Exists True N/A ret N/A N/A N/A N/A N/A ace N/A 1 permissionbit permissionbit N/A N/A N/A ret N/A Exists True N/A ret N/A N/A N/A ret N/A comment No DACL found for object. N/A ret N/A