Révision 8881779a
Ajouté par Frédéric Péters il y a presque 8 ans
extra/modules/abelium_domino_workflow.py | ||
---|---|---|
144 | 144 |
evo.status = 'wf-%s' % wf_status[0].id |
145 | 145 |
return False |
146 | 146 |
|
147 |
def is_available(self): |
|
147 |
def is_available(self, workflow=None):
|
|
148 | 148 |
return get_publisher().has_site_option('domino') |
149 | 149 |
is_available = classmethod(is_available) |
150 | 150 |
|
extra/modules/clicrdv.py | ||
---|---|---|
201 | 201 |
FormStatusPage.clicrdvevent = form_download_event |
202 | 202 |
init = classmethod(init) |
203 | 203 |
|
204 |
def is_available(self): |
|
204 |
def is_available(self, workflow=None):
|
|
205 | 205 |
return get_publisher().has_site_option('clicrdv') |
206 | 206 |
is_available = classmethod(is_available) |
207 | 207 |
|
... | ... | |
331 | 331 |
title=_('Status On Failure'), value=self.status_on_failure, |
332 | 332 |
options = [(None, '---')] + [(x.id, x.name) for x in self.parent.parent.possible_status]) |
333 | 333 |
|
334 |
def is_available(self): |
|
334 |
def is_available(self, workflow=None):
|
|
335 | 335 |
return get_publisher().has_site_option('clicrdv') |
336 | 336 |
is_available = classmethod(is_available) |
337 | 337 |
|
extra/modules/payments.py | ||
---|---|---|
219 | 219 |
next_status = None |
220 | 220 |
request_kwargs = {} |
221 | 221 |
|
222 |
def is_available(self): |
|
222 |
def is_available(self, workflow=None):
|
|
223 | 223 |
return is_payment_supported() |
224 | 224 |
is_available = classmethod(is_available) |
225 | 225 |
|
... | ... | |
309 | 309 |
reason = None |
310 | 310 |
regie_id = None |
311 | 311 |
|
312 |
def is_available(self): |
|
312 |
def is_available(self, workflow=None):
|
|
313 | 313 |
return is_payment_supported() |
314 | 314 |
is_available = classmethod(is_available) |
315 | 315 |
|
... | ... | |
455 | 455 |
|
456 | 456 |
next_status = None |
457 | 457 |
|
458 |
def is_available(self): |
|
458 |
def is_available(self, workflow=None):
|
|
459 | 459 |
return is_payment_supported() |
460 | 460 |
is_available = classmethod(is_available) |
461 | 461 |
|
Formats disponibles : Unified diff
misc: add new workflow keyword arg to action is_available methods (#11336)