_zmsglobals.dict_list(l)
BESCHREIBUNG:
The function dict_list converts a list of key/value entries to a dictionary. The function is needed, since it is not possible offhand to make and process respectively dictionaries out of DTML methods.
E.g. dict_list(['key1','val1','key2','val2']) delivers the dictionary {'key1':'val1','key2':'val2'}.
EINGABE-PARAMETER:
l[list]: the list
AUSGABE-PARAMETER:
d[dictionary]: the dictionary
_zmsglobals.sort_list(l, i, qorderdir='asc')
BESCHREIBUNG:
The function sort_list sorts the stated list l of data sets according to the column i. A data set iself can be a list or a dictionary. For lists i identifies the number of the column-index, for dictionaries the name of the column-key.
EINGABE-PARAMETER:
l[list]: list that shall be sorted
i[int|string]: column acc. to which list shall be sorted
qorderdir[string]: order of sorting ('asc': ascending, 'desc': descending)
AUSGABE-PARAMETER:
l[list]: the sorted list