diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-10-27 19:07:53 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-10-27 19:07:53 +0100 |
commit | aa46400cb217c3869729433d2439e6ce3146ca84 (patch) | |
tree | 597afe95ea026a700d743d798f32a340546f99fb /source4 | |
parent | 354038f170f2541318336aa72c9f2a0426c6607e (diff) | |
download | samba-aa46400cb217c3869729433d2439e6ce3146ca84.tar.gz samba-aa46400cb217c3869729433d2439e6ce3146ca84.tar.xz samba-aa46400cb217c3869729433d2439e6ce3146ca84.zip |
Revert "ldb python bindungs - better use the "enum ldb_scope" for the search scope rather than "int""
This reverts commit 4f8826ff7f4789c5b5f363b733a42053f72aa526.
Jelmer pointed out that the "enum"s don't work so well in combination with python.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/pyldb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c index 136cd47c11d..d4a369cc9fa 100644 --- a/source4/lib/ldb/pyldb.c +++ b/source4/lib/ldb/pyldb.c @@ -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) { PyObject *py_base = Py_None; - enum ldb_scope scope = LDB_SCOPE_DEFAULT; + int scope = LDB_SCOPE_DEFAULT; char *expr = NULL; PyObject *py_attrs = Py_None; PyObject *py_controls = Py_None; @@ -1348,8 +1348,7 @@ static PyObject *py_ldb_module_del_transaction(PyLdbModuleObject *self) static PyObject *py_ldb_module_search(PyLdbModuleObject *self, PyObject *args, PyObject *kwargs) { PyObject *py_base, *py_tree, *py_attrs, *py_ret; - int ret; - enum ldb_scope scope; + int ret, scope; struct ldb_request *req; const char * const kwnames[] = { "base", "scope", "tree", "attrs", NULL }; struct ldb_module *mod; |