misc: add new workflow keyword arg to action is_available methods (#11336)
This commit is contained in:
parent
32a7a539d8
commit
8881779a3a
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Reference in New Issue