| Conditions | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 33 | def guard_deactivate(analysis_service): |
||
| 34 | """Returns whether the transition deactivate can be performed for the |
||
| 35 | analysis service passed in |
||
| 36 | """ |
||
| 37 | for dependant in analysis_service.getServiceDependants(): |
||
| 38 | status = api.get_workflow_status_of(dependant) |
||
| 39 | if status == "active": |
||
| 40 | return False |
||
| 41 | |||
| 42 | return True |
||
| 43 |