equal
deleted
inserted
replaced
537 fields = {'link_id': get_dict['remove'], |
537 fields = {'link_id': get_dict['remove'], |
538 'scope': entity.scope} |
538 'scope': entity.scope} |
539 mentor = mentor_logic.logic.getForFields(fields, unique=True) |
539 mentor = mentor_logic.logic.getForFields(fields, unique=True) |
540 |
540 |
541 additional_mentors = entity.additional_mentors |
541 additional_mentors = entity.additional_mentors |
542 # pylint: disable- msg=E1103 |
542 # pylint: disable-msg=E1103 |
543 if additional_mentors and mentor.key() in additional_mentors: |
543 if additional_mentors and mentor.key() in additional_mentors: |
544 # remove the mentor from the additional mentors list |
544 # remove the mentor from the additional mentors list |
545 additional_mentors.remove(mentor.key()) |
545 additional_mentors.remove(mentor.key()) |
546 fields = {'additional_mentors': additional_mentors} |
546 fields = {'additional_mentors': additional_mentors} |
547 project_logic.updateEntityProperties(entity, fields) |
547 project_logic.updateEntityProperties(entity, fields) |