Conditions | 4 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # from wye.base.constants import WorkshopStatus |
||
24 | |||
25 | # def validate_assignme_action(func): |
||
26 | # def inner(self, user, **kwargs): |
||
27 | # # if workshop completed don't accept |
||
28 | # # presenter. |
||
29 | # if self.status == WorkshopStatus.HOLD: |
||
30 | # return { |
||
31 | # 'status': False, |
||
32 | # 'msg': 'Not accepting presenter as \ |
||
33 | # workshop is on hold.' |
||
34 | # } |
||
35 | # elif self.status == WorkshopStatus.COMPLETED: |
||
36 | # return { |
||
37 | # 'status': False, |
||
38 | # 'msg': 'Sorry, but it would seem that this \ |
||
39 | # workshop is already completed and hence \ |
||
40 | # won\'t be able to accept a presenter.'} |
||
41 | # return func(self, user, **kwargs) |
||
42 | # return inner |
||
43 |