summaryrefslogtreecommitdiffstats
path: root/python/xml/py_xml.c
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-05-13 16:48:34 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-05-13 16:48:34 +0000
commitce2a38b7df0b09f418af7ca6b6bf36b011ed9495 (patch)
treef8f4e0f9c6ca2530f6880b91537c62f19a6df957 /python/xml/py_xml.c
parent16d7f6b804f0235bec0f7ccdd376a814a85b4622 (diff)
downloadlasso-ce2a38b7df0b09f418af7ca6b6bf36b011ed9495.tar.gz
lasso-ce2a38b7df0b09f418af7ca6b6bf36b011ed9495.tar.xz
lasso-ce2a38b7df0b09f418af7ca6b6bf36b011ed9495.zip
node_url_encode() and node_soap_envelop() renamed
-> node_export_to_query() and node_export_to_soap()
Diffstat (limited to 'python/xml/py_xml.c')
-rw-r--r--python/xml/py_xml.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c
index d13c835e..c1a7a397 100644
--- a/python/xml/py_xml.c
+++ b/python/xml/py_xml.c
@@ -61,6 +61,41 @@ PyObject *node_dump(PyObject *self, PyObject *args) {
return (xmlCharPtr_wrap(ret));
}
+PyObject *node_export_to_query(PyObject *self, PyObject *args) {
+ PyObject *node_obj;
+ guint sign_method;
+ const gchar *private_key_file;
+ gchar *ret;
+
+ if (CheckArgs(args, "OIS:node_export_to_query")) {
+ if(!PyArg_ParseTuple(args, (char *) "Ois:node_export_to_query",
+ &node_obj, &sign_method, &private_key_file))
+ return NULL;
+ }
+ else return NULL;
+
+ ret = lasso_node_export_to_query(LassoNode_get(node_obj),
+ sign_method, private_key_file);
+
+ return (charPtr_wrap(ret));
+}
+
+PyObject *node_export_to_soap(PyObject *self, PyObject *args) {
+ PyObject *node_obj;
+ gchar *ret;
+
+ if (CheckArgs(args, "O:node_export_to_soap")) {
+ if(!PyArg_ParseTuple(args, (char *) "O:node_export_to_soap",
+ &node_obj))
+ return NULL;
+ }
+ else return NULL;
+
+ ret = lasso_node_export_to_soap(LassoNode_get(node_obj));
+
+ return (xmlCharPtr_wrap(ret));
+}
+
PyObject *node_get_attr_value(PyObject *self, PyObject *args) {
PyObject *node_obj;
const xmlChar *name;
@@ -127,41 +162,6 @@ PyObject *node_unref(PyObject *self, PyObject *args) {
return (Py_None);
}
-PyObject *node_url_encode(PyObject *self, PyObject *args) {
- PyObject *node_obj;
- guint sign_method;
- const gchar *private_key_file;
- gchar *ret;
-
- if (CheckArgs(args, "OIS:node_unref")) {
- if(!PyArg_ParseTuple(args, (char *) "Ois:node_url_encode",
- &node_obj, &sign_method, &private_key_file))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_node_url_encode(LassoNode_get(node_obj),
- sign_method, private_key_file);
-
- return (charPtr_wrap(ret));
-}
-
-PyObject *node_soap_envelop(PyObject *self, PyObject *args) {
- PyObject *node_obj;
- gchar *ret;
-
- if (CheckArgs(args, "O:node_unref")) {
- if(!PyArg_ParseTuple(args, (char *) "O:node_url_encode",
- &node_obj))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_node_soap_envelop(LassoNode_get(node_obj));
-
- return (charPtr_wrap(ret));
-}
-
PyObject *node_verify_signature(PyObject *self, PyObject *args) {
PyObject *node_obj;
const gchar *certificate_file;