code: def create_link(id_link, post_data):
          '''
          Add record in link.
          '''
          if MLink.get_by_uid(id_link):
              return False
          try:
              the_order = int(post_data['order'])
          except:
              the_order = 999
          TabLink.create(name=post_data['name'],
                         link=post_data['link'],
                         order=the_order,
                         logo=post_data['logo'] if 'logo' in post_data else '',
                         uid=id_link)
          return id_linf create_link(id_link, post_data):
          '''
          Add record in link.
          '''
          if MLink.get_by_uid(id_link):
              return False
          try:
              the_order = int(post_data['order'])
          except:
              the_order = 999
          TabLink.create(name=post_data['name'],
                         link=post_data['link'],
                         order=the_order,
                         logo=post_data['logo'] if 'logo' in post_data else '',
                         uid=id_link)
          return id_link
docs: Add record in link.