- Add python 2.3 to config search list (user submitted patch)
- Add JobStatus to Python variables.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1734
91ce42f0-d328-0410-95d8-
f526ca767f89
{ N_("Catalog"), "s"},
{ N_("MediaType"), "s"},
{ N_("JobName"), "s"},
{ N_("Catalog"), "s"},
{ N_("MediaType"), "s"},
{ N_("JobName"), "s"},
+ { N_("JobStatus"), "s"},
char *item;
bool found = false;
int i;
char *item;
bool found = false;
int i;
if (!PyArg_ParseTuple(args, "Os:get", &CObject, &item)) {
return NULL;
if (!PyArg_ParseTuple(args, "Os:get", &CObject, &item)) {
return NULL;
return Py_BuildValue(vars[i].fmt, jcr->store->media_type);
case 11: /* JobName */
return Py_BuildValue(vars[i].fmt, jcr->Job);
return Py_BuildValue(vars[i].fmt, jcr->store->media_type);
case 11: /* JobName */
return Py_BuildValue(vars[i].fmt, jcr->Job);
+ case 12: /* JobStatus */
+ buf[1] = 0;
+ buf[0] = jcr->JobStatus;
+ return Py_BuildValue(vars[i].fmt, buf);
} else {
str = "*none*";
}
} else {
str = "*none*";
}
- if (!str) {
- str = "";
- }
break;
case 'd':
str = my_name; /* Director's name */
break;
case 'd':
str = my_name; /* Director's name */
/* */
#undef VERSION
#define VERSION "1.37.1"
/* */
#undef VERSION
#define VERSION "1.37.1"
-#define BDATE "29 November 2004"
-#define LSMDATE "29Nov04"
+#define BDATE "01 December 2004"
+#define LSMDATE "01Dec04"
/* Debug flags */
#undef DEBUG
/* Debug flags */
#undef DEBUG