Changeset 926
- Timestamp:
- May 28, 2019, 11:33:18 AM (5 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/response_print.c
r921 r926 23 23 */ 24 24 25 #include "service.h"26 #include "service_internal.h"27 #include "server_internal.h"28 #include "response_print.h"29 25 #ifdef USE_MS 30 26 #include "service_internal_ms.h" … … 35 31 #include "service_callback.h" 36 32 #endif 33 #include "service.h" 34 #include "service_internal.h" 35 #include "server_internal.h" 36 #include "response_print.h" 37 37 38 38 #ifndef WIN32 … … 41 41 42 42 #include "mimetypes.h" 43 44 43 45 44 /** … … 1014 1013 1015 1014 n=nc; 1016 1017 1015 int wpsId=zooXmlAddNs(NULL,schemas[vid][3],"wps"); 1018 1016 ns=usedNs[wpsId]; … … 1427 1425 int oI=0; 1428 1426 /*if(vid==0)*/ { 1429 for(oI=0;oI<1 3;oI++)1427 for(oI=0;oI<12;oI++) 1430 1428 if((tmp1=getMap(_tmp->content,orderedFields[oI]))!=NULL){ 1431 1429 #ifdef DEBUG … … 2101 2099 printf("Content-Type: text/xml; charset=%s\r\nStatus: 200 OK\r\n\r\n",encoding); 2102 2100 } 2103 fflush(stdout);2104 2101 xmlChar *xmlbuff; 2105 2102 int buffersize; -
trunk/zoo-project/zoo-kernel/response_print.h
r923 r926 94 94 #include <libxml/parser.h> 95 95 #include <libxml/xpath.h> 96 #include "cgic.h" 96 97 97 98 #ifdef __cplusplus -
trunk/zoo-project/zoo-kernel/service_callback.c
r917 r926 435 435 maps* curs=inputs; 436 436 dumpMaps(curs); 437 c har *keys[11][2]={437 const char *keys[11][2]={ 438 438 { 439 439 "xlink:href", … … 614 614 maps* curs=outputs; 615 615 dumpMaps(curs); 616 c har *keys[10][2]={616 const char *keys[10][2]={ 617 617 { 618 618 "Reference", … … 656 656 } 657 657 }; 658 c har* specifics[5][2]={658 const char* specifics[5][2]={ 659 659 { 660 660 "download_link", … … 767 767 case 6: { 768 768 // Finalize HPC 769 c har *keys[6][2]={769 const char *keys[6][2]={ 770 770 { 771 771 //"SubmitTime", -
trunk/zoo-project/zoo-kernel/service_internal_python.c
r921 r926 351 351 PyObject *ptype, *pvalue, *ptraceback,*pValue,*pArgs; 352 352 PyErr_Fetch(&ptype, &pvalue, &ptraceback); 353 c har *pStrErrorMessage = PyString_AsString(pvalue);353 const char *pStrErrorMessage = PyString_AsString(pvalue); 354 354 char *tmp0=_("Python module %s cannot be loaded. Message: %s\n"); 355 355 … … 698 698 if(strncmp(PyString_AsString(key),"child",5)!=0){ 699 699 if(strncmp(PyString_AsString(key),"value",5)==0){ 700 c har *buffer=NULL;700 const char *buffer=NULL; 701 701 Py_ssize_t size; 702 702 #if PY_MAJOR_VERSION >= 3 … … 720 720 res = addToMapWithSize(res,PyString_AsString(key),buffer,size); 721 721 }else{ 722 c har* lkey=PyString_AsString(key);723 c har* lvalue=PyString_AsString(value);722 const char* lkey=PyString_AsString(key); 723 const char* lvalue=PyString_AsString(value); 724 724 if(res!=NULL){ 725 725 if(PyString_Size(value)>0) … … 759 759 PyObject* key; 760 760 PyObject* value; 761 c har *buffer = NULL;761 const char *buffer = NULL; 762 762 Py_ssize_t size; 763 763 for(int i = 0; i < nb; i++) { -
trunk/zoo-project/zoo-kernel/sqlapi.c
r923 r926 71 71 maps* cconf=getMaps(conf,key); 72 72 if(cconf==NULL){ 73 fprintf(stderr,"%s %d\n",__FILE__,__LINE__);74 73 return "-1"; 75 74 } -
trunk/zoo-project/zoo-kernel/sqlapi.h
r923 r926 51 51 #endif 52 52 53 54 53 #ifdef META_DB 55 54 ZOO_DLL_EXPORT char* _createInitString(maps*,const char*); -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r921 r926 1240 1240 }else{ 1241 1241 checkValidValue(request_inputs,&err,"AcceptVersions",(const char**)vvv,-1); 1242 map* tmpMap=getMapFromMaps(m,"main","version"); 1243 if(tmpMap!=NULL){ 1244 setMapInMaps(m,"main","rversion",tmpMap->value); 1245 addToMap(request_inputs,"version",tmpMap->value); 1246 }else{ 1247 setMapInMaps(m,"main","rversion","1.0.0"); 1248 addToMap(request_inputs,"version","1.0.0"); 1249 } 1242 1250 map* version1=getMap(request_inputs,"AcceptVersions"); 1243 1251 if(version1!=NULL){ … … 1247 1255 addToMap(request_inputs,"version",version1->value); 1248 1256 version=getMap(request_inputs,"version"); 1249 setMapInMaps(m,"main","rversion",version->value);1250 vid=getVersionId(version->value);1251 1257 } 1252 1258 }
Note: See TracChangeset
for help on using the changeset viewer.