[gnome-python-extras] pygda: Wrap gda_server_operation_set_value_at
- From: Armin Burgmeier <arminb src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-python-extras] pygda: Wrap gda_server_operation_set_value_at
- Date: Wed, 24 Jun 2009 16:51:45 +0000 (UTC)
commit b75b92639dbfc8d81d5c13d29ace57a2bee8dbd2
Author: Armin Burgmeier <armin arbur net>
Date: Wed Jun 24 18:47:37 2009 +0200
pygda: Wrap gda_server_operation_set_value_at
* gda/gda.override: Added an override for
gda_server_operation_set_value_at, to be able to create and drop
databases via pygda.
ChangeLog | 6 ++++++
gda/gda.override | 22 ++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0c49728..9a1b18c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-24 Armin Burgmeier <armin openismus com>
+
+ * gda/gda.override: Added an override for
+ gda_server_operation_set_value_at, to be able to create and drop
+ databases via pygda.
+
2009-03-10 Josselin Mouette <joss malsain org>
reviewed by: Gustavo Carneiro
diff --git a/gda/gda.override b/gda/gda.override
index 722738e..442529f 100644
--- a/gda/gda.override
+++ b/gda/gda.override
@@ -306,3 +306,25 @@ _wrap_gda_value_set (PyObject* self, PyObject* fargs, PyObject* kwargs) {
}
}
%%
+define GdaServerOperation.set_value_at kwargs
+static PyObject*
+_wrap_gda_server_operation_set_value_at (PyGObject* self, PyObject* fargs, PyObject* kwargs) {
+ static char *kwlist[] = { "path", "value", NULL };
+ gchar* path = NULL;
+ gchar* value = NULL;
+ GError* error = NULL;
+
+ if (!PyArg_ParseTupleAndKeywords(fargs, kwargs,
+ "ss:GdaServerOperation.set_value_at", kwlist,
+ &path, &value)) {
+ return NULL;
+ }
+
+ gda_server_operation_set_value_at(GDA_SERVER_OPERATION(self->obj), value, &error, "%s", path);
+
+ if (pyg_error_check(&error))
+ return NULL;
+
+ Py_INCREF (Py_None);
+ return Py_None;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]