git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2d227bd
)
level keys are inserted by conv routines.
author
Tim Potter
<tpot@samba.org>
Fri, 6 Sep 2002 06:59:40 +0000
(06:59 +0000)
committer
Tim Potter
<tpot@samba.org>
Fri, 6 Sep 2002 06:59:40 +0000
(06:59 +0000)
source/python/py_spoolss_drivers.c
patch
|
blob
|
history
diff --git
a/source/python/py_spoolss_drivers.c
b/source/python/py_spoolss_drivers.c
index b5357a78ad3b32d7f5bc1c9edba44d98f978366a..2e8fac4a4e15745e186fe218265bcffc17b67343 100644
(file)
--- a/
source/python/py_spoolss_drivers.c
+++ b/
source/python/py_spoolss_drivers.c
@@
-98,9
+98,6
@@
PyObject *spoolss_enumprinterdrivers(PyObject *self, PyObject *args,
py_from_DRIVER_INFO_1(&value, &ctr.info1[i]);
py_from_DRIVER_INFO_1(&value, &ctr.info1[i]);
- PyDict_SetItemString(
- value, "level", PyInt_FromLong(1));
-
PyDict_SetItemString(result, name, value);
}
PyDict_SetItemString(result, name, value);
}
@@
-117,9
+114,6
@@
PyObject *spoolss_enumprinterdrivers(PyObject *self, PyObject *args,
py_from_DRIVER_INFO_2(&value, &ctr.info2[i]);
py_from_DRIVER_INFO_2(&value, &ctr.info2[i]);
- PyDict_SetItemString(
- value, "level", PyInt_FromLong(2));
-
PyDict_SetItemString(result, name, value);
}
PyDict_SetItemString(result, name, value);
}
@@
-136,9
+130,6
@@
PyObject *spoolss_enumprinterdrivers(PyObject *self, PyObject *args,
py_from_DRIVER_INFO_3(&value, &ctr.info3[i]);
py_from_DRIVER_INFO_3(&value, &ctr.info3[i]);
- PyDict_SetItemString(
- value, "level", PyInt_FromLong(3));
-
PyDict_SetItemString(result, name, value);
}
PyDict_SetItemString(result, name, value);
}
@@
-155,9
+146,6
@@
PyObject *spoolss_enumprinterdrivers(PyObject *self, PyObject *args,
py_from_DRIVER_INFO_6(&value, &ctr.info6[i]);
py_from_DRIVER_INFO_6(&value, &ctr.info6[i]);
- PyDict_SetItemString(
- value, "level", PyInt_FromLong(6));
-
PyList_SetItem(result, i, value);
}
PyList_SetItem(result, i, value);
}
@@
-302,8
+290,6
@@
PyObject *spoolss_getprinterdriverdir(PyObject *self, PyObject *args,
switch (level) {
case 1:
py_from_DRIVER_DIRECTORY_1(&result, ctr.info1);
switch (level) {
case 1:
py_from_DRIVER_DIRECTORY_1(&result, ctr.info1);
- PyDict_SetItemString(
- result, "level", PyInt_FromLong(1));
break;
default:
PyErr_SetString(spoolss_error, "unknown info level");
break;
default:
PyErr_SetString(spoolss_error, "unknown info level");