From: Marco van Wieringen Date: Sun, 6 Dec 2009 16:39:52 +0000 (+0100) Subject: Fix python plugin to use the new get functions instead of the get_ functions. X-Git-Tag: Release-5.0.0~184^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=82d54067971419858b96905dad98878fe865ee54;p=bacula%2Fbacula Fix python plugin to use the new get functions instead of the get_ functions. --- diff --git a/bacula/src/filed/pythonfd.c b/bacula/src/filed/pythonfd.c index 77240409ee..a15864b28d 100644 --- a/bacula/src/filed/pythonfd.c +++ b/bacula/src/filed/pythonfd.c @@ -108,9 +108,9 @@ PyObject *job_getattr(PyObject *self, char *attrname) case 0: /* FD's name */ return Py_BuildValue((char *)getvars[i].fmt, my_name); case 1: /* level */ - return Py_BuildValue((char *)getvars[i].fmt, job_level_to_str(jcr->get_JobLevel())); + return Py_BuildValue((char *)getvars[i].fmt, job_level_to_str(jcr->getJobLevel())); case 2: /* type */ - return Py_BuildValue((char *)getvars[i].fmt, job_type_to_str(jcr->get_JobType())); + return Py_BuildValue((char *)getvars[i].fmt, job_type_to_str(jcr->getJobType())); case 3: /* JobId */ return Py_BuildValue((char *)getvars[i].fmt, jcr->JobId); case 4: /* Client */ diff --git a/bacula/src/stored/pythonsd.c b/bacula/src/stored/pythonsd.c index 16c1110b83..6b6b64c50d 100644 --- a/bacula/src/stored/pythonsd.c +++ b/bacula/src/stored/pythonsd.c @@ -118,9 +118,9 @@ PyObject *job_getattr(PyObject *self, char *attrname) case 1: /* SD's name */ return Py_BuildValue((char *)getvars[i].fmt, my_name); case 2: /* level */ - return Py_BuildValue((char *)getvars[i].fmt, job_level_to_str(jcr->get_JobLevel())); + return Py_BuildValue((char *)getvars[i].fmt, job_level_to_str(jcr->getJobLevel())); case 3: /* type */ - return Py_BuildValue((char *)getvars[i].fmt, job_type_to_str(jcr->get_JobType())); + return Py_BuildValue((char *)getvars[i].fmt, job_type_to_str(jcr->getJobType())); case 4: /* JobId */ return Py_BuildValue((char *)getvars[i].fmt, jcr->JobId); case 5: /* Client */