- Timestamp:
- Nov 16, 2010, 7:18:57 PM (14 years ago)
- Location:
- trunk/zoo-kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/service_internal.c
r41 r43 1263 1263 xmlAddChild(nc1,nc2); 1264 1264 // Extract Abstract required to be second element in the ZCFG file ! 1265 tmp=tmp->next; 1266 nc2=xmlNewNode(ns_ows, BAD_CAST tmp->name); 1267 nc3=xmlNewText(BAD_CAST _ss(tmp->value)); 1268 xmlAddChild(nc2,nc3); 1269 xmlAddChild(nc1,nc2); 1270 xmlAddChild(nc,nc1); 1271 tmp=tmp->next; 1265 // For GRASS it can be empty ... 1266 if(tmp->next!=NULL){ 1267 tmp=tmp->next; 1268 nc2=xmlNewNode(ns_ows, BAD_CAST tmp->name); 1269 nc3=xmlNewText(BAD_CAST _ss(tmp->value)); 1270 xmlAddChild(nc2,nc3); 1271 xmlAddChild(nc1,nc2); 1272 xmlAddChild(nc,nc1); 1273 tmp=tmp->next; 1274 } 1272 1275 1273 1276 /** -
trunk/zoo-kernel/service_internal_python.c
r9 r43 201 201 map* tmp=t; 202 202 while(tmp!=NULL){ 203 if(PyDict_SetItem(res,PyString_FromString(tmp->name),PyString_FromString(tmp->value))<0){ 204 fprintf(stderr,"Unable to parse params..."); 205 exit(1); 206 } 203 if(strcasecmp(tmp->name,"value")==0){ 204 map* ttmp=getMap(t,size); 205 if(ttmp!=NULL) 206 if(PyDict_SetItem(res,PyString_FromString(tmp->name),PyString_FromStringAndSize(tmp->value,(Py_ssize_t) atoi(ttmp->value)))<0){ 207 fprintf(stderr,"Unable to parse params..."); 208 exit(1); 209 } 210 else 211 if(PyDict_SetItem(res,PyString_FromString(tmp->name),PyString_FromString(tmp->value))<0){ 212 fprintf(stderr,"Unable to parse params..."); 213 exit(1); 214 } 215 } 216 else 217 if(PyDict_SetItem(res,PyString_FromString(tmp->name),PyString_FromString(tmp->value))<0){ 218 fprintf(stderr,"Unable to parse params..."); 219 exit(1); 220 } 207 221 tmp=tmp->next; 208 222 } -
trunk/zoo-kernel/ulinet.c
r9 r43 235 235 default: 236 236 sprintf(filename,"/tmp/ZOO_Cache%d",(int)time(NULL)); 237 printf("file=%s",filename); 238 #ifdef MSG_LAF_VERBOSE 239 printf("file=%s",filename); 237 filename[24]=0; 238 fprintf(stderr,"file=%s",filename); 239 #ifdef MSG_LAF_VERBOSE 240 fprintf(stderr,"file=%s",filename); 240 241 #endif 241 242 hInternet.filename=filename;
Note: See TracChangeset
for help on using the changeset viewer.