summaryrefslogtreecommitdiffstats
path: root/python/environs
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2004-07-22 09:54:05 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2004-07-22 09:54:05 +0000
commit81b5acd5eb4528e10d3da2045ce8b0887effeabc (patch)
treeab2a68c66e4e59e4d0effa8808a848d30226d633 /python/environs
parentc2dc90e2e99a83a1d80042c0405ecba94ad01845 (diff)
downloadlasso-81b5acd5eb4528e10d3da2045ce8b0887effeabc.tar.gz
lasso-81b5acd5eb4528e10d3da2045ce8b0887effeabc.tar.xz
lasso-81b5acd5eb4528e10d3da2045ce8b0887effeabc.zip
profile context with function to parse a soap request
Diffstat (limited to 'python/environs')
-rw-r--r--python/environs/py_profile_context.c44
-rw-r--r--python/environs/py_profile_context.h35
2 files changed, 79 insertions, 0 deletions
diff --git a/python/environs/py_profile_context.c b/python/environs/py_profile_context.c
new file mode 100644
index 00000000..655c2b3a
--- /dev/null
+++ b/python/environs/py_profile_context.c
@@ -0,0 +1,44 @@
+/* $Id$
+ *
+ * PyLasso -- Python bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.labs.libre-entreprise.org
+ *
+ * Authors: Valery Febvre <vfebvre@easter-eggs.com>
+ * Nicolas Clapies <nclapies@entrouvert.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "../lassomod.h"
+#include "py_profile_context.h"
+
+PyObject *profile_context_get_request_type_from_soap_msg(PyObject *self, PyObject *args) {
+ gchar *soap_buffer;
+ gint type;
+
+ if (CheckArgs(args, "S:profile_context_get_request_type_from_soap_msg")) {
+ if(!PyArg_ParseTuple(args, (char *) "s:profile_context_get_request_type_from_soap_msg",
+ &soap_buffer))
+ return NULL;
+ }
+ else return NULL;
+
+ type = lasso_profile_context_get_request_type_from_soap_msg(soap_buffer);
+
+ return(int_wrap(type));
+}
+
diff --git a/python/environs/py_profile_context.h b/python/environs/py_profile_context.h
new file mode 100644
index 00000000..00ec0117
--- /dev/null
+++ b/python/environs/py_profile_context.h
@@ -0,0 +1,35 @@
+/* $Id$
+ *
+ * PyLasso -- Python bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.labs.libre-entreprise.org
+ *
+ * Authors: Valery Febvre <vfebvre@easter-eggs.com>
+ * Nicolas Clapies <nclapies@entrouvert.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __PYLASSO_PY_PROFILE_CONTEXT_H__
+#define __PYLASSO_PY_PROFILE_CONTEXT_H__
+
+#include <lasso/environs/profile_context.h>
+
+PyObject *profile_context_get_request_type_from_soap_msg(PyObject *self, PyObject *args);
+
+#endif /* __PYLASSO_PY_PROFILE_CONTEXT_H__ */
+
+