Conditions | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
12 | @indexer(ICancellable) |
||
13 | def cancellation_state(instance): |
||
14 | """Acts as a mask for cancellation_workflow for those content types that are |
||
15 | not bound to this workflow. Returns 'active' or 'cancelled' |
||
16 | """ |
||
17 | if api.get_workflow_status_of(instance) == "cancelled": |
||
18 | return "cancelled" |
||
19 | return "active" |
||
20 |