Ignore:
Timestamp:
Dec 18, 2020, 2:13:22 PM (4 years ago)
Author:
djay
Message:

Add support for the two inputs / outputs syntaxes discussed in SWG in both the ZOO-Kernel and the HTML basic UI. Update documentation, add a section for the ZOO-API in Python language section. Rename variables in service.c to ease readabiliy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/server_internal.c

    r962 r967  
    377377  sprintf(rsize,"%lld",f_status.st_size);
    378378  if(getMap(content,"storage")==NULL){
    379     map* memUse=getMapFromMaps(m,"main","memory");
    380     if(memUse==NULL || strncmp(memUse->value,"load",4)==0){
    381       map* tmpMap1=getMap(content,"value");
    382       if(tmpMap1==NULL){
    383         addToMap(content,"value","");
    384         tmpMap1=getMap(content,"value");
    385       }
    386       free(tmpMap1->value);
    387       tmpMap1->value=(char*) malloc((f_status.st_size+1)*sizeof(char));
    388       if(tmpMap1->value==NULL){
    389         setMapInMaps(m,"lenv","message","Unable to allocate the memory required to read the produced file.");
    390         return;
    391       }
    392       fread(&tmpMap1->value,1,f_status.st_size,file);
    393       tmpMap1->value[f_status.st_size]=0;
    394     }
     379    map* tmpMap1=getMap(content,"value");
     380    if(tmpMap1==NULL){
     381      addToMap(content,"value","");
     382      tmpMap1=getMap(content,"value");
     383    }
     384    free(tmpMap1->value);
     385    tmpMap1->value=(char*) malloc((f_status.st_size+1)*sizeof(char));
     386    if(tmpMap1->value==NULL){
     387      setMapInMaps(m,"lenv","message","Unable to allocate the memory required to read the produced file.");
     388      return;
     389    }
     390    fread(tmpMap1->value,1,f_status.st_size,file);
     391    tmpMap1->value[f_status.st_size]=0;
    395392  }
    396393  fclose(file);
     
    994991void runGetStatus(maps* conf,char* pid,char* req){
    995992  map* r_inputs = getMapFromMaps (conf, "main", "tmpPath");
    996   map* e_type = getMapFromMaps (conf, "lenv", "executionType");
     993  map* e_type = getMapFromMaps (conf, "main", "executionType");
    997994  char *sid=getStatusId(conf,pid);
    998995  if(sid==NULL){
     
    11011098void runDismiss(maps* conf,char* pid){
    11021099  map* r_inputs = getMapFromMaps (conf, "main", "tmpPath");
    1103   map* e_type = getMapFromMaps (conf, "lenv", "executionType");
     1100  map* e_type = getMapFromMaps (conf, "main", "executionType");
    11041101  char *sid=getStatusId(conf,pid);
    11051102  if(sid==NULL){
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png