def apidoc_events(): events = dispatcher.event_types tree = materialized_paths_to_tree(events.keys()) return render_template('apidoc/events.html', events=events, tree=tree)
def apidoc_tasks(): tasks = dispatcher.tasks tree = materialized_paths_to_tree(tasks.keys()) return render_template('apidoc/tasks.html', tasks=tasks, tree=tree)