def METHOD_NAME(self, a):
    # annotate the activity with its grade and marking object before starting
    if hasattr(a, 'grade'):
        return
    a.grade = a.get_grade(self.context['view'].member.person, self.context['view'].member.role)
    if self.context['view'].member.role == 'STUD' and a.status != 'RLS':
        a.details = None
    else:
        a.details = get_activity_mark_for_student(a, self.context['view'].member)