Coverage for plugins/module_utils/api.py : 100%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
# -*- coding: utf-8 -*- # Copyright: (c) 2022, XLAB Steampunk <steampunk@xlab.si> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
query="sysparm_query", display_value="sysparm_display_value", exclude_reference_link="sysparm_exclude_reference_link", suppress_pagination_header="sysparm_suppress_pagination_header", fields="sysparm_fields", columns="sysparm_fields", query_category="sysparm_query_category", limit="sysparm_limit", view="sysparm_view", query_no_domain="sysparm_query_no_domain", no_count="sysparm_no_count", sys_id="sys_id", sysparm_query="sysparm_query", )
# FIELD_COLUMNS_NAME and FIELD_QUERY_NAME are the ones that are additionally modified in api_info.py, # so setting constant variable for them.
FIELD_QUERY_NAME, "display_value", "exclude_reference_link", "fields", "query_category", "query_no_domain", "no_count", FIELD_COLUMNS_NAME, FIELD_SYS_ID, ]
""" Transforms query by applying SN_QUERY_MAPPING to query's keys. """ (SN_QUERY_MAPPING[query_key], query_value) for (query_key, query_value) in query.items() )
""" In api.py and api_info.py the table's name is always going to be stored in module's resource """
|