1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-20 14:03:59 +03:00

ldb python bindungs - better use the "enum ldb_scope" for the search scope rather than "int"

This commit is contained in:
Matthias Dieter Wallnöfer 2009-10-23 14:26:41 +02:00
parent b9a3f1dd85
commit 4f8826ff7f

View File

@ -1006,7 +1006,7 @@ static PyObject *py_ldb_schema_format_value(PyLdbObject *self, PyObject *args)
static PyObject *py_ldb_search(PyLdbObject *self, PyObject *args, PyObject *kwargs) static PyObject *py_ldb_search(PyLdbObject *self, PyObject *args, PyObject *kwargs)
{ {
PyObject *py_base = Py_None; PyObject *py_base = Py_None;
int scope = LDB_SCOPE_DEFAULT; enum ldb_scope scope = LDB_SCOPE_DEFAULT;
char *expr = NULL; char *expr = NULL;
PyObject *py_attrs = Py_None; PyObject *py_attrs = Py_None;
PyObject *py_controls = Py_None; PyObject *py_controls = Py_None;
@ -1348,7 +1348,8 @@ static PyObject *py_ldb_module_del_transaction(PyLdbModuleObject *self)
static PyObject *py_ldb_module_search(PyLdbModuleObject *self, PyObject *args, PyObject *kwargs) static PyObject *py_ldb_module_search(PyLdbModuleObject *self, PyObject *args, PyObject *kwargs)
{ {
PyObject *py_base, *py_tree, *py_attrs, *py_ret; PyObject *py_base, *py_tree, *py_attrs, *py_ret;
int ret, scope; int ret;
enum ldb_scope scope;
struct ldb_request *req; struct ldb_request *req;
const char * const kwnames[] = { "base", "scope", "tree", "attrs", NULL }; const char * const kwnames[] = { "base", "scope", "tree", "attrs", NULL };
struct ldb_module *mod; struct ldb_module *mod;