Module Import alias Import alias Import alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Continue TryExcept body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad AugAssignAdd NameStore NameLoad handlers ExceptHandler type NameLoad name NameStore body If AttributeLoad NameLoad attr body Raise NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore IfExp Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Num If UnaryOpNot NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body If AttributeLoad NameLoad attr body Raise NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore NameLoad If CompareNotEq NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad TryExcept body Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Raise decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Num For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If AttributeLoad NameLoad attr body Raise NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Continue orelse AugAssignAdd NameStore Num Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body If NameLoad body Assert Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list
N/A N/A os N/A six N/A st2common.content.utils content_utils st2common log logging st2common.constants.meta ALLOWED_EXTS st2common.bootstrap.base ResourceRegistrar st2common.models.api.action ActionAliasAPI st2common.persistence.actionalias ActionAlias N/A __all__ N/A AliasesRegistrar register_aliases N/A LOG N/A N/A logging getLogger __name__ AliasesRegistrar N/A ResourceRegistrar N/A N/A ALLOWED_EXTENSIONS ALLOWED_EXTS register_aliases_from_packs N/A N/A self base_dirs N/A N/A N/A 
        Discover all the packs in the provided directory and register aliases from all of the
        discovered packs.

        :return: Number of aliases registered.
        :rtype: ``int``
         N/A N/A N/A self register_packs base_dirs base_dirs N/A registered_count 0 N/A content N/A N/A N/A self _pack_loader get_content base_dirs base_dirs content_type aliases N/A N/A pack aliases_dir N/A N/A six iteritems content N/A N/A N/A aliases_dir N/A N/A N/A N/A LOG debug Pack %s does not contain aliases. pack N/A N/A N/A N/A N/A N/A LOG debug Registering aliases from pack %s:, dir: %s pack aliases_dir N/A aliases N/A N/A self _get_aliases_from_pack aliases_dir N/A count N/A N/A self _register_aliases_from_pack pack pack aliases aliases N/A registered_count count N/A N/A N/A Exception N/A e N/A N/A N/A self _fail_on_failure N/A N/A e N/A N/A N/A LOG exception Failed registering all aliases from pack: %s aliases_dir N/A registered_count N/A register_aliases_from_pack N/A N/A self pack_dir N/A N/A N/A 
        Register all the aliases from the provided pack.

        :return: Number of aliases registered.
        :rtype: ``int``
         N/A pack_dir N/A N/A N/A pack_dir endswith / N/A pack_dir N/A -1 pack_dir N/A N/A _ pack N/A N/A N/A os path split pack_dir N/A aliases_dir N/A N/A N/A self _pack_loader get_content_from_pack pack_dir pack_dir content_type aliases N/A N/A N/A self register_pack pack_name pack pack_dir pack_dir N/A registered_count 0 N/A N/A aliases_dir N/A N/A registered_count N/A N/A N/A LOG debug Registering aliases from pack %s:, dir: %s pack aliases_dir N/A N/A N/A aliases N/A N/A self _get_aliases_from_pack aliases_dir aliases_dir N/A registered_count N/A N/A self _register_aliases_from_pack pack pack aliases aliases N/A N/A N/A Exception N/A e N/A N/A N/A self _fail_on_failure N/A N/A e N/A N/A N/A LOG exception Failed registering all aliases from pack: %s aliases_dir N/A registered_count N/A registered_count N/A _get_aliases_from_pack N/A N/A self aliases_dir N/A N/A N/A N/A N/A self get_resources_from_pack resources_dir aliases_dir N/A _get_action_alias_db N/A N/A self pack action_alias N/A N/A N/A 
        Retrieve ActionAliasDB object.
         N/A content N/A N/A N/A self _meta_loader load action_alias N/A pack_field N/A N/A content get pack None N/A N/A pack_field N/A N/A N/A content N/A pack pack N/A pack_field pack N/A N/A pack_field pack N/A N/A N/A Exception N/A Model is in pack "%s" but field "pack" is different: %s N/A pack pack_field N/A action_alias_api N/A ActionAliasAPI content N/A N/A N/A action_alias_api validate N/A action_alias_db N/A N/A ActionAliasAPI to_model action_alias_api N/A action_alias_db N/A _register_action_alias N/A N/A self pack action_alias N/A N/A N/A action_alias_db N/A N/A self _get_action_alias_db pack pack action_alias action_alias N/A N/A N/A N/A action_alias_db id N/A N/A N/A ActionAlias get_by_name N/A action_alias_db name id N/A N/A N/A ValueError N/A N/A N/A N/A LOG debug ActionAlias %s not found. Creating new one. action_alias N/A N/A N/A action_alias_db N/A N/A ActionAlias add_or_update action_alias_db N/A extra N/A action_alias_db action_alias_db N/A N/A N/A LOG audit Action alias updated. Action alias %s from %s. action_alias_db action_alias extra extra N/A N/A N/A Exception N/A N/A N/A N/A LOG exception Failed to create action alias %s. N/A action_alias_db name N/A N/A _register_aliases_from_pack N/A N/A self pack aliases N/A N/A N/A registered_count 0 N/A alias aliases N/A N/A N/A N/A N/A N/A LOG debug Loading alias from %s. alias N/A N/A N/A self _register_action_alias pack alias N/A N/A N/A Exception N/A e N/A N/A N/A self _fail_on_failure N/A N/A e N/A N/A N/A LOG exception Unable to register alias: %s alias N/A N/A N/A registered_count 1 N/A registered_count N/A N/A register_aliases N/A N/A packs_base_paths pack_dir use_pack_cache fail_on_failure N/A None None True False N/A N/A packs_base_paths N/A N/A N/A isinstance packs_base_paths list N/A N/A packs_base_paths N/A N/A packs_base_paths N/A N/A content_utils get_packs_base_paths N/A registrar N/A AliasesRegistrar use_pack_cache use_pack_cache fail_on_failure fail_on_failure N/A pack_dir N/A N/A result N/A N/A registrar register_aliases_from_pack pack_dir pack_dir N/A N/A result N/A N/A registrar register_aliases_from_packs base_dirs packs_base_paths N/A result N/A