示例#1
0
 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))
示例#2
0
 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))
示例#3
0
 def attach(self, label, **kwargs):
     self.feedback.append(Feedback(label, **kwargs))