Changeset 490 for trunk/zoo-project/zoo-kernel/service_internal_python.c
- Timestamp:
- Jun 27, 2014, 1:14:39 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_python.c
r478 r490 107 107 Py_DECREF(tmp); 108 108 109 ZooError = PyErr_NewException( "zoo.error", NULL, NULL);109 ZooError = PyErr_NewException((char*)"zoo.error", NULL, NULL); 110 110 Py_INCREF(ZooError); 111 111 PyModule_AddObject(module, "error", ZooError); … … 138 138 } 139 139 else{ 140 python_path= ".";140 python_path=(char*)"."; 141 141 } 142 142 tmp=NULL; … … 243 243 if(PyString_Check(trace)){ 244 244 char *tpbt=zStrdup(pbt); 245 sprintf(pbt,"%s\n%s \0",tpbt,PyString_AsString(trace));245 sprintf(pbt,"%s\n%s",tpbt,PyString_AsString(trace)); 246 246 free(tpbt); 247 247 } … … 261 261 sprintf(pbt,"%s\nUnable to run your python process properly. Please check the following messages : %s",tpbt,PyString_AsString(trace)); 262 262 else 263 sprintf(pbt,"%s \n Unable to run your python process properly. Unable to provide any futher informations. %s",tpbt);263 sprintf(pbt,"%s \n Unable to run your python process properly. Unable to provide any futher informations.",tpbt); 264 264 free(tpbt); 265 265 map* err=createMap("text",pbt); … … 492 492 tmpR->value[size]=0; 493 493 char sin[1024]; 494 sprintf(sin,"% d",size);494 sprintf(sin,"%ld",size); 495 495 addToMap(res,"size",sin); 496 496 }else{ … … 546 546 /* now update the map */ 547 547 { 548 PyObject* lenv = PyMapping_GetItemString(confdict, "lenv");548 PyObject* lenv = PyMapping_GetItemString(confdict, (char *)"lenv"); 549 549 if (lenv && PyMapping_Check(lenv)){ 550 550 PyObject* valobj = PyString_FromString(status); 551 PyMapping_SetItemString(lenv, "status", valobj);551 PyMapping_SetItemString(lenv, (char *)"status", valobj); 552 552 Py_DECREF(valobj); 553 553 }
Note: See TracChangeset
for help on using the changeset viewer.