Build a list of treeview nodes from the child nodes.
(self, *args, **kwargs)
| 340 | ) |
| 341 | |
| 342 | def children(self, *args, **kwargs): |
| 343 | """Build a list of treeview nodes from the child nodes.""" |
| 344 | children = self.get_children_nodes(*args, **kwargs) |
| 345 | |
| 346 | # Return sorted nodes based on label |
| 347 | return make_json_response( |
| 348 | data=sorted( |
| 349 | children, key=lambda c: c['label'] |
| 350 | ) |
| 351 | ) |
| 352 | |
| 353 | def get_children_nodes(self, *args, **kwargs): |
| 354 | """ |
nothing calls this directly
no test coverage detected