code: def update(self, uid):
          '''
          Update the link.
          '''
          if self.userinfo.role[1] >= '3':
              pass
          else:
              return False
          post_data = self.get_post_data()
  
          post_data['user_name'] = self.get_current_user()
  
          if self.is_p:
              if MLink.update(uid, post_data):
                  output = {
                      'addinfo ': 1,
                  }
              else:
                  output = {
                      'addinfo ': 0,
                  }
              return json.dump(output, self)
          else:
              if MLink.update(uid, post_data):
                  self.redirect('/link/list'f update(self, uid):
          '''
          Update the link.
          '''
          if self.userinfo.role[1] >= '3':
              pass
          else:
              return False
          post_data = self.get_post_data()
  
          post_data['user_name'] = self.get_current_user()
  
          if self.is_p:
              if MLink.update(uid, post_data):
                  output = {
                      'addinfo ': 1,
                  }
              else:
                  output = {
                      'addinfo ': 0,
                  }
              return json.dump(output, self)
          else:
              if MLink.update(uid, post_data):
                  self.redirect('/link/list')
docs: Update the link.