awsc.base_control.TemplateList
- class awsc.base_control.TemplateList(source=None)
A list which can be templated from a ResourceLister control.
Methods
append
(object, /)Append object to the end of the list.
clear
(/)Remove all items from list.
copy
(/)Return a shallow copy of the list.
count
(value, /)Return number of occurrences of value.
extend
(iterable, /)Extend list by appending elements from the iterable.
index
(value[, start, stop])Return first index of value.
insert
(index, object, /)Insert object before index.
pop
([index])Remove and return item at index (default last).
remove
(value, /)Remove first occurrence of value.
resolve
(selection, **kwargs)Resolves the TemplateList into a list.
reverse
(/)Reverse IN PLACE.
sort
(*[, key, reverse])Sort the list in ascending order and return None.
- __init__(source=None)
Initializes a TemplateList.
- Parameters:
- sourcelist, optional
If provided, initializes the TemplateList by recursively converting the provided list.
Methods
__init__
([source])Initializes a TemplateList.
append
(object, /)Append object to the end of the list.
clear
(/)Remove all items from list.
copy
(/)Return a shallow copy of the list.
count
(value, /)Return number of occurrences of value.
extend
(iterable, /)Extend list by appending elements from the iterable.
index
(value[, start, stop])Return first index of value.
insert
(index, object, /)Insert object before index.
pop
([index])Remove and return item at index (default last).
remove
(value, /)Remove first occurrence of value.
resolve
(selection, **kwargs)Resolves the TemplateList into a list.
reverse
(/)Reverse IN PLACE.
sort
(*[, key, reverse])Sort the list in ascending order and return None.