def set_success(self, group=None): """ Creates Successful feedback for the user, indicating that the entire assignment is done. """ if group is None: group = self.group self.feedback.append(Feedback('set_success', priority='positive', result=True, group=group))
def give_partial(self, value, message=None, group=None): if group is None: group = self.group self.feedback.append( Feedback('give_partial', performance=value, priority='positive', group=group, mistake=message))
def attach(self, label, **kwargs): self.feedback.append(Feedback(label, **kwargs))