From 8881779a3ad7780158b5c6a8e6d2d3984956ddd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 6 Jun 2016 19:24:45 +0200 Subject: [PATCH] misc: add new workflow keyword arg to action is_available methods (#11336) --- extra/modules/abelium_domino_workflow.py | 2 +- extra/modules/clicrdv.py | 4 ++-- extra/modules/payments.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/extra/modules/abelium_domino_workflow.py b/extra/modules/abelium_domino_workflow.py index 93f7ecf..3bb9a43 100644 --- a/extra/modules/abelium_domino_workflow.py +++ b/extra/modules/abelium_domino_workflow.py @@ -144,7 +144,7 @@ class AbeliumDominoRegisterFamilyWorkflowStatusItem(WorkflowStatusJumpItem): evo.status = 'wf-%s' % wf_status[0].id return False - def is_available(self): + def is_available(self, workflow=None): return get_publisher().has_site_option('domino') is_available = classmethod(is_available) diff --git a/extra/modules/clicrdv.py b/extra/modules/clicrdv.py index f4ad650..2dfd8ab 100644 --- a/extra/modules/clicrdv.py +++ b/extra/modules/clicrdv.py @@ -201,7 +201,7 @@ class ClicRdvCreateAppointment(WorkflowStatusItem): FormStatusPage.clicrdvevent = form_download_event init = classmethod(init) - def is_available(self): + def is_available(self, workflow=None): return get_publisher().has_site_option('clicrdv') is_available = classmethod(is_available) @@ -331,7 +331,7 @@ class ClicRdvCancelAppointment(WorkflowStatusItem): title=_('Status On Failure'), value=self.status_on_failure, options = [(None, '---')] + [(x.id, x.name) for x in self.parent.parent.possible_status]) - def is_available(self): + def is_available(self, workflow=None): return get_publisher().has_site_option('clicrdv') is_available = classmethod(is_available) diff --git a/extra/modules/payments.py b/extra/modules/payments.py index 5c2d37f..cb97a6e 100644 --- a/extra/modules/payments.py +++ b/extra/modules/payments.py @@ -219,7 +219,7 @@ class PaymentWorkflowStatusItem(WorkflowStatusItem): next_status = None request_kwargs = {} - def is_available(self): + def is_available(self, workflow=None): return is_payment_supported() is_available = classmethod(is_available) @@ -309,7 +309,7 @@ class PaymentCancelWorkflowStatusItem(WorkflowStatusItem): reason = None regie_id = None - def is_available(self): + def is_available(self, workflow=None): return is_payment_supported() is_available = classmethod(is_available) @@ -455,7 +455,7 @@ class PaymentValidationWorkflowStatusItem(WorkflowStatusItem): next_status = None - def is_available(self): + def is_available(self, workflow=None): return is_payment_supported() is_available = classmethod(is_available) -- 2.8.1