def configs_show(webhook_config_id): config = WebhookConfig.get(webhook_config_id, current_user) form = WebhookConfigDeleteForm(webhook_config_id=webhook_config_id, user=current_user) if config is None: return Response(status=404) return render_template('configs_show.html', config=config, clear_form=form)
def configs_show(webhook_config_id): config = WebhookConfig.get(webhook_config_id, current_user) form = WebhookConfigDeleteForm( webhook_config_id=webhook_config_id, user=current_user ) if config is None: return Response(status=404) return render_template( 'configs_show.html', config=config, clear_form=form )
def __init__(self, *args, **kwargs): Form.__init__(self, *args, **kwargs) self.url_config_id = kwargs['webhook_config_id'] self.webhook_config = WebhookConfig.get(self.url_config_id, kwargs['user'])