def submitData():
 action = request.post_vars.action
 if (action == 'vulnerability'):
  return import_vul_ui()
 elif (action == 'vulnerability_part1'):
  return import_vul_csv_part1()
 elif (action == 'vulnerability_part2'):
  return import_vul_csv_part2()
 elif (action in ('map', 'image', 'other', 'vca')):
  return import_document(action)
 elif (action == 'demographics'):
  return import_demo_ui()
 elif (action == 'demographics_part1'):
  return import_demo_csv_part1()
 elif (action == 'demographics_part2'):
  return import_demo_csv_part2()

def submitData ( ) : action = request . post_vars . action if ( action == 'vulnerability' ) : return import_vul_ui ( ) elif ( action == 'vulnerability_part1' ) : return import_vul_csv_part1 ( ) elif ( action == 'vulnerability_part2' ) : return import_vul_csv_part2 ( ) elif ( action in ( 'map' , 'image' , 'other' , 'vca' ) ) : return import_document ( action ) elif ( action == 'demographics' ) : return import_demo_ui ( ) elif ( action == 'demographics_part1' ) : return import_demo_csv_part1 ( ) elif ( action == 'demographics_part2' ) : return import_demo_csv_part2 ( )
controller to manage the ajax import of vulnerability data .