code: def user_add_link(self):
          '''
          Create link by user.
          '''
          if self.check_post_role()['ADD']:
              pass
          else:
              return False
          post_data = self.get_post_data()
  
          post_data['user_name'] = self.get_current_user()
  
          cur_uid = tools.get_uudd(2)
          while MLink.get_by_uid(cur_uid):
              cur_uid = tools.get_uudd(2)
  
          MLink.create_link(cur_uid, post_data)
  
          self.redirect('/link/list'f user_add_link(self):
          '''
          Create link by user.
          '''
          if self.check_post_role()['ADD']:
              pass
          else:
              return False
          post_data = self.get_post_data()
  
          post_data['user_name'] = self.get_current_user()
  
          cur_uid = tools.get_uudd(2)
          while MLink.get_by_uid(cur_uid):
              cur_uid = tools.get_uudd(2)
  
          MLink.create_link(cur_uid, post_data)
  
          self.redirect('/link/list')
docs: Create link by user.