def onknit(self, e):
    logging.debug(DummyKnittingPlugin.base_log_string.format("onknit"))
    # In order to simulate blocking we make it sleep.
    total = 5
    for i in range(total):
      time.sleep(1)
      self.interactive_callbacks["progress"](i / float(total), i, total)
    self.finish()