]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix python plugin to use the new get functions instead of the get_ functions.
authorMarco van Wieringen <mvw@planets.elm.net>
Sun, 6 Dec 2009 16:39:52 +0000 (17:39 +0100)
committerMarco van Wieringen <mvw@planets.elm.net>
Sun, 6 Dec 2009 16:39:52 +0000 (17:39 +0100)
bacula/src/filed/pythonfd.c
bacula/src/stored/pythonsd.c

index 77240409ee7429a714b7e2f8678121411a822c45..a15864b28d9ab271b981160e21c2dab605ab9901 100644 (file)
@@ -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 */
index 16c1110b83134c497aa287f9556bc2716a8c58e0..6b6b64c50de59f5eba4b694b2b0d77894cd2b0a5 100644 (file)
@@ -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 */