From f4e4a76f3ca70f0bad636e324c43d3da993df854 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Wed, 1 Jun 2011 12:39:55 +0200 Subject: py-libreport: added compatibility with python-meh - which means it should be usable to report bugs from Anaconda --- src/report-python/problem_data.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/report-python/problem_data.c') diff --git a/src/report-python/problem_data.c b/src/report-python/problem_data.c index ac80362a..9067dead 100644 --- a/src/report-python/problem_data.c +++ b/src/report-python/problem_data.c @@ -112,6 +112,15 @@ static PyObject *p_create_dump_dir_from_problem_data(PyObject *pself, PyObject * return (PyObject*)new_dd; } +static PyObject *p_add_basics_to_problem_data(PyObject *pself, PyObject *always_null) +{ + p_problem_data *self = (p_problem_data*)pself; + add_basics_to_problem_data(self->cd); + + Py_RETURN_NONE; +} + + //static PyMemberDef p_problem_data_members[] = { // { NULL } //}; @@ -121,6 +130,7 @@ static PyMethodDef p_problem_data_methods[] = { { "add" , p_problem_data_add , METH_VARARGS }, { "get" , p_get_problem_data_item , METH_VARARGS }, { "create_dump_dir", p_create_dump_dir_from_problem_data, METH_VARARGS }, + { "add_basics", p_add_basics_to_problem_data, METH_NOARGS }, { NULL } }; -- cgit