Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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
    )
Ejemplo n.º 3
0
    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'])
Ejemplo n.º 4
0
    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'])