code: def update(self, uid):
          '''
          Update the post via ID.
          '''
          if self.userinfo.role[0] > '0':
              pass
          else:
              return False
  
          post_data = self.get_post_data()
          post_data['user_name'] = self.userinfo.user_name if self.userinfo else ''
          cur_info = MWiki.get_by_uid(uid)
          MWikiHist.create_wiki_history(cur_info)
          MWiki.update_cnt(uid, post_data)
          if cur_info.kind == '1':
              self.redirect('/wiki/{0}'.format(cur_info.title))
          elif cur_info.kind == '2':
              self.redirect('/page/{0}.html'.format(cur_info.uid)f update(self, uid):
          '''
          Update the post via ID.
          '''
          if self.userinfo.role[0] > '0':
              pass
          else:
              return False
  
          post_data = self.get_post_data()
          post_data['user_name'] = self.userinfo.user_name if self.userinfo else ''
          cur_info = MWiki.get_by_uid(uid)
          MWikiHist.create_wiki_history(cur_info)
          MWiki.update_cnt(uid, post_data)
          if cur_info.kind == '1':
              self.redirect('/wiki/{0}'.format(cur_info.title))
          elif cur_info.kind == '2':
              self.redirect('/page/{0}.html'.format(cur_info.uid))
docs: Update the post via ID.