equal
deleted
inserted
replaced
24 |
24 |
25 from django import forms |
25 from django import forms |
26 from django.utils.translation import ugettext |
26 from django.utils.translation import ugettext |
27 |
27 |
28 from soc.logic import cleaning |
28 from soc.logic import cleaning |
|
29 from soc.logic import validate |
|
30 |
29 |
31 |
30 def cleanTaskComment(comment_field, action_field, ws_field): |
32 def cleanTaskComment(comment_field, action_field, ws_field): |
31 """Cleans the comment form and checks to see if there is either |
33 """Cleans the comment form and checks to see if there is either |
32 action or comment content. |
34 action or comment content. |
33 |
35 |
61 |
63 |
62 def cleanMentorsList(field_name): |
64 def cleanMentorsList(field_name): |
63 """Clean method to check and validate list of mentor's link_ids. |
65 """Clean method to check and validate list of mentor's link_ids. |
64 """ |
66 """ |
65 |
67 |
66 @check_field_is_empty(field_name) |
68 @cleaning.check_field_is_empty(field_name) |
67 def wrapper(self): |
69 def wrapper(self): |
68 """Decorator wrapped method. |
70 """Decorator wrapped method. |
69 """ |
71 """ |
70 |
72 |
71 from soc.modules.ghop.logic.models.mentor import logic as ghop_mentor_logic |
73 from soc.modules.ghop.logic.models.mentor import logic as ghop_mentor_logic |