def get_links(self, **request_data): try: sp_lst = str(request_data['species']).strip(); specieslist = sp_lst.split('|') except: return return_response_error(400,"error","Missing parameters text","JSON") service_result = species_to_url_service_EOL.get_eolurls_species(specieslist) return service_result;
def links(self,**request_data): try: input_json = cherrypy.request.json species_list = input_json["species"] except: return return_response_error(400,"error","Missing parameters text","JSON") service_result = species_to_url_service_EOL.get_eolurls_species(species_list, True) return service_result;