noc.lib.app.extdocapplication

Module Contents

class noc.lib.app.extdocapplication.ExtDocApplication(*args, **kwargs)

Bases: noc.lib.app.extapplication.ExtApplication

model
icon = icon_application_view_list
query_fields = []
query_condition = startswith
int_query_fields = []
clean_fields
parent_field
parent_model
secret_fields
lookup_default
ignored_fields
SECRET_MASK = ********
rx_oper_splitter
get_permissions(self)
get_custom_fields(self)
get_launch_info(self, request)
get_Q(self, request, query)

Prepare Q statement for query

queryset(self, request, query=None)

Filter records for lookup

clean(self, data)

Clean up input data :param data: dict of parameters :type data: dict :return: dict of cleaned parameters of raised InterfaceTypeError :rtype: dict

cleaned_query(self, q)
has_secret(self)

Check current user has secret permission on given app :return:

instance_to_dict(self, o, fields=None, nocustom=False)
instance_to_lookup(self, o, fields=None)
api_list(self, request)
api_lookup(self, request)
api_lookup_tree(self, request)
api_create(self, request)
api_read(self, request, id)

Returns dict with object’s fields and values

api_update(self, request, id)
api_delete(self, request, id)
_api_to_json(self, request, id)

Expose JSON collection item when available

_api_share_info(self, request, id)

Additional information for JSON sharing process :param request: :param id: :return:

_bulk_field_is_builtin(self, data)

Apply is_builtin field :param data: :return:

api_action_group_edit(self, request)