equal
deleted
inserted
replaced
126 if 'link_id' in django_args: |
126 if 'link_id' in django_args: |
127 task_filter = { |
127 task_filter = { |
128 'link_id': django_args['link_id'], |
128 'link_id': django_args['link_id'], |
129 'scope_path': django_args['scope_path'], |
129 'scope_path': django_args['scope_path'], |
130 } |
130 } |
131 task_entity = ghop_task_logic.logic.getFromKeyFields(task_filter) |
131 task_entity = ghop_task_logic.logic.getFromKeyFieldsOr404(task_filter) |
132 |
132 |
133 if task_entity.status not in ['Unapproved', 'Unpublished', 'Open']: |
133 if task_entity.status not in ['Unapproved', 'Unpublished', 'Open']: |
134 # task is claimed at least once |
134 # task is claimed at least once |
135 raise out_of_band.AccessViolation(message_fmt=DEF_CANT_EDIT_MSG) |
135 raise out_of_band.AccessViolation(message_fmt=DEF_CANT_EDIT_MSG) |
136 |
136 |