Changeset 376 for trunk/zoo-project/zoo-kernel/service_internal_python.c
- Timestamp:
- Nov 3, 2012, 3:07:43 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_python.c
r368 r376 28 28 29 29 PyMethodDef zooMethods[] = { 30 {"_", PythonTranslate, METH_VARARGS, "Translate a string using the zoo-services textdomain."}, 30 31 {"update_status", PythonUpdateStatus, METH_VARARGS, "Update status percentage of a running process."}, 31 32 {NULL, NULL, 0, NULL} /* tempt not the blade, all fear the sentinel */ … … 418 419 419 420 PyObject* 421 PythonTranslate(PyObject* self, PyObject* args) 422 { 423 char *str; 424 if (!PyArg_ParseTuple(args, "s", &str)){ 425 #ifdef DEBUG 426 fprintf(stderr,"Incorrect arguments to update status function"); 427 #endif 428 return NULL; 429 } 430 return PyString_FromString(_ss(str)); 431 } 432 433 PyObject* 420 434 PythonUpdateStatus(PyObject* self, PyObject* args) 421 435 {
Note: See TracChangeset
for help on using the changeset viewer.