diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-06-01 12:39:55 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-06-01 12:39:55 +0200 |
| commit | f4e4a76f3ca70f0bad636e324c43d3da993df854 (patch) | |
| tree | 57bb95b352cd12cc3a35a57fe5db6d201815bfc6 /src/report-python/problem_data.c | |
| parent | 82c53df6074a4db8f2c5cb4e6b665c2e0881eb28 (diff) | |
| download | abrt-f4e4a76f3ca70f0bad636e324c43d3da993df854.tar.gz abrt-f4e4a76f3ca70f0bad636e324c43d3da993df854.tar.xz abrt-f4e4a76f3ca70f0bad636e324c43d3da993df854.zip | |
py-libreport: added compatibility with python-meh
- which means it should be usable to report bugs from Anaconda
Diffstat (limited to 'src/report-python/problem_data.c')
| -rw-r--r-- | src/report-python/problem_data.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 } }; |
