If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:query tree.lua

From BoxMatrix


BoxMatrix >> Webinterface >> query_tree.lua @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

UI-Structure UI-Modules HTML-Files XML-Files Lua-Scripts Javascript Browser SSI-Files SSI-Directives HTML-Text Event-Text Help-Pages CSS-Files Graphics Research

Lua-Script

Goto:   Functions  -  Dependencies   -   Model-Matrix   -   SMW-Browser

Details

This has been found in Labor, but did not make it to Release. It may be a test case or a future feature.

query_tree.lua is a REST-API helper include to dump a complete UI-Module without the disadvantages of multiquery.
It is included by api.lua and provides the query_tree function. Excerpt from the script:

This module defines the function query_tree.
It is used to dump complete UI-Module substructures by the usage of box.multiquery.
Therefore it circumvents the limitations of box.multiquery by merging the result values 
with the requested column names and uses recursion to dive into nested sublists found in 
landevice and telcfg.

REST-API:

Functions

The function names of scripts often help to understand function blocks (and show gaps in the docs). fw 7530-7.39-96136 functions:

$ grep -e '^function' -e '^local function' /usr/rest_api/query_tree.lua

# traverse the first hierarchy of an uim struct table and 
# return lists of webvar names and sublist names.
local function get_leaf_names(node)

# Does a box.multiquery on a list of column names and merges 
# the values with the names as key in a table
local function multiquery_map(prefix, leaf_names)

# Recursively queries a complete UI-Module sub structure.
local function query_sublist(prefix, list_name, struct_desc)

# Query a complete UI-Module list structure found on the 1st hirarchy of an UI-Module.
# This is an advanced version of box.multiquery
local function query_tree(module_name, list_name, struct_desc) 

Dependencies

Daily updated index of all dependencies of this script. Last update: 2024-05-13 09:22 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.
If an Object includes itself then this is a file with the same name but another Path and the dependencies are merged.

Relation Typ Object Mod Firmware Info Origin
Accesses uimod boxusers 15 7.39 FritzBox-Users AVM
Requires lua avmluamessages.lua 15 7.39 REST-API Debug Message Printer AVM
Required by lua api.lua 15 7.39 REST-API Lua-Land root for scgi_server AVM
3 dependencies for this script

Model-Matrix

Daily updated index of the presence, path and size of this script for each model. Last update: 2024-05-13 06:38 GMT.
Showing all models using this script. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size/Bytes
FRITZ!Box 6591 Cable (arm) 7.39 /usr/rest_api 6.7k - 6.9k
FRITZ!Box 6591 Cable (atom) 7.39 /usr/rest_api 6.7k - 6.9k
FRITZ!Box 6660 Cable (arm) 7.39 /usr/rest_api 6.7k - 6.9k
FRITZ!Box 6660 Cable (atom) 7.39 /usr/rest_api 6.7k - 6.9k
FRITZ!Box 6690 Cable (arm) 7.39 /usr/rest_api 6.7k
FRITZ!Box 6690 Cable (atom) 7.39 /usr/rest_api 6.7k
FRITZ!Box 6850 LTE 7.39 /usr/rest_api 6.7k
FRITZ!Box 6890 LTE 7.39 /usr/rest_api 6.7k
FRITZ!Box 6890 LTE v1 7.39 /usr/rest_api 6.7k
FRITZ!Box 6890 LTE v2 7.39 /usr/rest_api 6.7k
FRITZ!Box 7530 7.39 /usr/rest_api 6.7k - 6.9k
FRITZ!Box 7530 AX 7.39 /usr/rest_api 6.7k
FRITZ!Box 7590 7.39 /usr/rest_api 6.7k - 6.9k
FRITZ!Box 7590 AX 7.39 /usr/rest_api 6.7k - 6.9k
FRITZ!Repeater 2400 7.39 /usr/rest_api 6.7k
15 models use this script

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

q