def generate_trigger_urls(app): for name, triggers in TRIGGER_MAP.items(): for trigger in triggers: view_name = get_trigger_name(name, trigger) view_func = get_trigger_view(name, trigger) app.route(view_name, ["GET", "POST"], callback=view_func)
def generate_trigger_urls(config): for name, triggers in TRIGGER_MAP.items(): for trigger in triggers: view_name = get_trigger_name(name, trigger) view_pattern = get_trigger_pattern(name, trigger) view_func = get_trigger_view(name, trigger) _add_route(config, view_name, view_pattern, view_func)
def generate_trigger_urls(app): for name, triggers in TRIGGER_MAP.items(): for trigger in triggers: view_name = get_trigger_name(name, trigger) view_cls = get_trigger_view(name, trigger) app.add_route(view_name, view_cls())
def _make_trigger_list(): arglist = [] for vuln_name, trigger_names in TRIGGER_MAP.items(): if not trigger_names: continue for trigger in trigger_names: arglist.append((vuln_name, trigger)) return arglist
def generate_trigger_urls(): trigger_urls = [] for name, triggers in TRIGGER_MAP.items(): for trigger in triggers: view_name = get_trigger_name(name, trigger) view_func = get_trigger_view(name, trigger) trigger_urls.append(compat_url(view_name, view_func)) return trigger_urls
def generate_trigger_urls(): for name, triggers in TRIGGER_MAP.items(): for trigger in triggers: get_trigger_view(name, trigger)