code: def redirect_kind(self, postinfo):
          '''
          Redirect according the kind of the post.
          :param postinfo: the postinfo
          :return: None
          '''
          logger.warning('info kind:{0} '.format(postinfo.kind))
  
          # If not, there must be something wrong.
          if postinfo.kind == self.kind:
              pass
          else:
              self.redirect('/{0}/{1}'.format(router_post[postinfo.kind], postinfo.uid),
                            permanent=Truef redirect_kind(self, postinfo):
          '''
          Redirect according the kind of the post.
          :param postinfo: the postinfo
          :return: None
          '''
          logger.warning('info kind:{0} '.format(postinfo.kind))
  
          # If not, there must be something wrong.
          if postinfo.kind == self.kind:
              pass
          else:
              self.redirect('/{0}/{1}'.format(router_post[postinfo.kind], postinfo.uid),
                            permanent=True)
docs: Redirect according the kind of the post.
          :param postinfo: the postinfo
          :return: None