code: def status(self, *args, priority=0):
          'Add status message to be shown until next action.'
          k = (priority, args)
          self.statuses[k] = self.statuses.get(k, 0) + 1
  
          if self.statusHistory:
              prevpri, prevargs, prevn = self.statusHistory[-1]
              if prevpri == priority and prevargs == args:
                  self.statusHistory[-1][2] += 1
                  return True
  
          self.statusHistory.append([priority, args, 1])
          return Truf status(self, *args, priority=0):
          'Add status message to be shown until next action.'
          k = (priority, args)
          self.statuses[k] = self.statuses.get(k, 0) + 1
  
          if self.statusHistory:
              prevpri, prevargs, prevn = self.statusHistory[-1]
              if prevpri == priority and prevargs == args:
                  self.statusHistory[-1][2] += 1
                  return True
  
          self.statusHistory.append([priority, args, 1])
          return True
docs: Add status message to be shown until next action.