|
@@ -254,31 +254,6 @@ ZoneFinder_find_all(PyObject* po_self, PyObject* args) {
|
|
args));
|
|
args));
|
|
}
|
|
}
|
|
|
|
|
|
-PyObject*
|
|
|
|
-ZoneFinder_findPreviousName(PyObject* po_self, PyObject* args) {
|
|
|
|
- s_ZoneFinder* const self = static_cast<s_ZoneFinder*>(po_self);
|
|
|
|
- PyObject* name_obj;
|
|
|
|
- if (PyArg_ParseTuple(args, "O!", &name_type, &name_obj)) {
|
|
|
|
- try {
|
|
|
|
- return (createNameObject(
|
|
|
|
- self->cppobj->findPreviousName(PyName_ToName(name_obj))));
|
|
|
|
- } catch (const isc::NotImplemented& nie) {
|
|
|
|
- PyErr_SetString(getDataSourceException("NotImplemented"),
|
|
|
|
- nie.what());
|
|
|
|
- return (NULL);
|
|
|
|
- } catch (const std::exception& exc) {
|
|
|
|
- PyErr_SetString(getDataSourceException("Error"), exc.what());
|
|
|
|
- return (NULL);
|
|
|
|
- } catch (...) {
|
|
|
|
- PyErr_SetString(getDataSourceException("Error"),
|
|
|
|
- "Unexpected exception");
|
|
|
|
- return (NULL);
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- return (NULL);
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
// This list contains the actual set of functions we have in
|
|
// This list contains the actual set of functions we have in
|
|
// python. Each entry has
|
|
// python. Each entry has
|
|
// 1. Python method name
|
|
// 1. Python method name
|
|
@@ -291,8 +266,6 @@ PyMethodDef ZoneFinder_methods[] = {
|
|
{ "get_class", ZoneFinder_getClass, METH_NOARGS, ZoneFinder_getClass_doc },
|
|
{ "get_class", ZoneFinder_getClass, METH_NOARGS, ZoneFinder_getClass_doc },
|
|
{ "find", ZoneFinder_find, METH_VARARGS, ZoneFinder_find_doc },
|
|
{ "find", ZoneFinder_find, METH_VARARGS, ZoneFinder_find_doc },
|
|
{ "find_all", ZoneFinder_find_all, METH_VARARGS, ZoneFinder_findAll_doc },
|
|
{ "find_all", ZoneFinder_find_all, METH_VARARGS, ZoneFinder_findAll_doc },
|
|
- { "find_previous_name", ZoneFinder_findPreviousName, METH_VARARGS,
|
|
|
|
- ZoneFinder_find_previous_name_doc },
|
|
|
|
{ NULL, NULL, 0, NULL }
|
|
{ NULL, NULL, 0, NULL }
|
|
};
|
|
};
|
|
|
|
|