コード例 #1
0
def send_section_advocate(session, section_file, section_item, advocate_id):
  section_json = load_json(section_file)
  section_item = SectionLoader(section_json, item=section_item).load_advocate_owner(advocate_id)
  section_item.send(session)
  return section_item
コード例 #2
0
def send_section(session, section_file, argument_id, number):
  section_json = load_json(section_file)
  section_item = SectionLoader(section_json).load_section_data(argument_id, number)
  section_item.send(session)
  return section_item