summaryrefslogtreecommitdiffstats
path: root/python/protocols
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2004-05-13 15:18:24 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2004-05-13 15:18:24 +0000
commit86f8466f0bf6b2a7ef68098ada8d2fc396a99ccd (patch)
treecac881fa2f5e4840237fc264395ad94466029e2d /python/protocols
parent4b94672a4e3f2600b34ca137a525071017e23fb7 (diff)
downloadlasso-86f8466f0bf6b2a7ef68098ada8d2fc396a99ccd.tar.gz
lasso-86f8466f0bf6b2a7ef68098ada8d2fc396a99ccd.tar.xz
lasso-86f8466f0bf6b2a7ef68098ada8d2fc396a99ccd.zip
register name identifier request and response updates in C and python binding
Diffstat (limited to 'python/protocols')
-rw-r--r--python/protocols/py_register_name_identifier_request.c42
-rw-r--r--python/protocols/py_register_name_identifier_request.h5
-rw-r--r--python/protocols/py_register_name_identifier_response.c94
-rw-r--r--python/protocols/py_register_name_identifier_response.h7
4 files changed, 132 insertions, 16 deletions
diff --git a/python/protocols/py_register_name_identifier_request.c b/python/protocols/py_register_name_identifier_request.c
index 4d6081be..537bbddd 100644
--- a/python/protocols/py_register_name_identifier_request.c
+++ b/python/protocols/py_register_name_identifier_request.c
@@ -82,18 +82,52 @@ PyObject *register_name_identifier_request_new(PyObject *self, PyObject *args) {
return (LassoRegisterNameIdentifierRequest_wrap(LASSO_REGISTER_NAME_IDENTIFIER_REQUEST(request)));
}
-PyObject *register_name_identifier_request_change_attribute_names_identifiers(PyObject *self, PyObject *args){
+PyObject *register_name_identifier_request_rename_attributes_for_query(PyObject *self, PyObject *args){
PyObject *request_obj;
- if (CheckArgs(args, "O:register_name_identifier_request_change_attribute_names_identifiers")) {
- if(!PyArg_ParseTuple(args, (char *) "O:register_name_identifier_request_change_attribute_names_identifiers",
+ if (CheckArgs(args, "O:register_name_identifier_request_rename_attributes_for_query")) {
+ if(!PyArg_ParseTuple(args, (char *) "O:register_name_identifier_request_rename_attributes_for_query",
&request_obj))
return NULL;
}
else return NULL;
- lasso_register_name_identifier_change_attribute_names_identifiers(LassoRegisterNameIdentifierRequest_get(request_obj));
+ lasso_register_name_identifier_rename_attributes_for_query(LassoRegisterNameIdentifierRequest_get(request_obj));
Py_INCREF(Py_None);
return (Py_None);
}
+
+PyObject *register_name_identifier_request_new_from_soap(PyObject *self, PyObject *args) {
+ const xmlChar *soap_buffer;
+
+ LassoNode *request;
+
+ if (CheckArgs(args, "S:register_name_identifier_request_new_from_soap")) {
+ if(!PyArg_ParseTuple(args, (char *) "s:register_name_identifier_request_new_from_soap",
+ &soap_buffer))
+ return NULL;
+ }
+ else return NULL;
+
+ request = lasso_register_name_identifier_request_new_from_soap(soap_buffer);
+
+ return (LassoRegisterNameIdentifierRequest_wrap(LASSO_REGISTER_NAME_IDENTIFIER_REQUEST(request)));
+}
+
+PyObject *register_name_identifier_request_new_from_query(PyObject *self, PyObject *args) {
+ const xmlChar *query;
+
+ LassoNode *request;
+
+ if (CheckArgs(args, "S:register_name_identifier_request_new_from_query")) {
+ if(!PyArg_ParseTuple(args, (char *) "s:register_name_identifier_request_new_from_query",
+ &query))
+ return NULL;
+ }
+ else return NULL;
+
+ request = lasso_register_name_identifier_request_new_from_query(query);
+
+ return (LassoRegisterNameIdentifierRequest_wrap(LASSO_REGISTER_NAME_IDENTIFIER_REQUEST(request)));
+}
diff --git a/python/protocols/py_register_name_identifier_request.h b/python/protocols/py_register_name_identifier_request.h
index 98d708bb..2dc1cf37 100644
--- a/python/protocols/py_register_name_identifier_request.h
+++ b/python/protocols/py_register_name_identifier_request.h
@@ -37,6 +37,9 @@ typedef struct {
PyObject *LassoRegisterNameIdentifierRequest_wrap(LassoRegisterNameIdentifierRequest *request);
PyObject *register_name_identifier_request_new(PyObject *self, PyObject *args);
-PyObject *register_name_identifier_request_change_attribute_names_identifiers(PyObject *self, PyObject *args);
+PyObject *register_name_identifier_request_rename_attributes_for_query(PyObject *self, PyObject *args);
+
+PyObject *register_name_identifier_request_new_from_soap(PyObject *self, PyObject *args);
+PyObject *register_name_identifier_request_new_from_query(PyObject *self, PyObject *args);
#endif /* __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_REQUEST_H__ */
diff --git a/python/protocols/py_register_name_identifier_response.c b/python/protocols/py_register_name_identifier_response.c
index 4f8d50fd..854ac87f 100644
--- a/python/protocols/py_register_name_identifier_response.c
+++ b/python/protocols/py_register_name_identifier_response.c
@@ -42,23 +42,97 @@ PyObject *LassoRegisterNameIdentifierResponse_wrap(LassoRegisterNameIdentifierRe
/******************************************************************************/
-PyObject *register_name_identifier_response_new(PyObject *self, PyObject *args) {
+PyObject *register_name_identifier_response_new_from_request_soap(PyObject *self, PyObject *args) {
+ const xmlChar *request_soap_dump;
const xmlChar *providerID;
- const xmlChar *statusCodeValue;
- PyObject *request_obj;
- LassoNode *response;
+ const xmlChar *status_code_value;
- if (CheckArgs(args, "SSO:register_name_identifier_response_new")) {
- if(!PyArg_ParseTuple(args, (char *) "ssO:register_name_identifier_response_new",
+ LassoNode *response = NULL;
+
+ if (CheckArgs(args, "SSS:register_name_identifier_response_new_from_request_soap")) {
+ if(!PyArg_ParseTuple(args, (char *) "sss:register_name_identifier_response_new_from_request_soap",
+ &request_soap_dump,
&providerID,
- &statusCodeValue, &request_obj))
+ &status_code_value))
+ return NULL;
+ }
+ else return NULL;
+
+ response = lasso_register_name_identifier_response_new_from_request_soap(request_soap_dump,
+ providerID,
+ status_code_value);
+
+ return (LassoRegisterNameIdentifierResponse_wrap(LASSO_REGISTER_NAME_IDENTIFIER_RESPONSE(response)));
+}
+
+PyObject *register_name_identifier_response_new_from_soap(PyObject *self, PyObject *args) {
+ const xmlChar *request_soap_dump;
+
+ LassoNode *response = NULL;
+
+ if (CheckArgs(args, "S:register_name_identifier_response_new_from_soap")) {
+ if(!PyArg_ParseTuple(args, (char *) "s:register_name_identifier_response_new_from_soap",
+ &request_soap_dump))
+ return NULL;
+ }
+ else return NULL;
+
+ response = lasso_register_name_identifier_response_new_from_soap(request_soap_dump);
+
+ return (LassoRegisterNameIdentifierResponse_wrap(LASSO_REGISTER_NAME_IDENTIFIER_RESPONSE(response)));
+}
+
+PyObject *register_name_identifier_response_new_from_dump(PyObject *self, PyObject *args) {
+ const xmlChar *dump;
+
+ LassoNode *response = NULL;
+
+ if (CheckArgs(args, "S:register_name_identifier_response_new_from_dump")) {
+ if(!PyArg_ParseTuple(args, (char *) "s:register_name_identifier_response_new_from_dump",
+ &dump))
+ return NULL;
+ }
+ else return NULL;
+
+ response = lasso_register_name_identifier_response_new_from_soap(dump);
+
+ return (LassoRegisterNameIdentifierResponse_wrap(LASSO_REGISTER_NAME_IDENTIFIER_RESPONSE(response)));
+}
+
+PyObject *register_name_identifier_response_new_from_request_query(PyObject *self, PyObject *args) {
+ const xmlChar *query;
+ const xmlChar *providerID;
+ const xmlChar *status_code_value;
+
+ LassoNode *response = NULL;
+
+ if (CheckArgs(args, "SSS:register_name_identifier_response_new_from_request_query")) {
+ if(!PyArg_ParseTuple(args, (char *) "sss:register_name_identifier_response_new_from_request_query",
+ &query,
+ &providerID,
+ &status_code_value))
+ return NULL;
+ }
+ else return NULL;
+
+ response = lasso_register_name_identifier_response_new_from_request_query(query, providerID, status_code_value);
+
+ return (LassoRegisterNameIdentifierResponse_wrap(LASSO_REGISTER_NAME_IDENTIFIER_RESPONSE(response)));
+}
+
+PyObject *register_name_identifier_response_new_from_query(PyObject *self, PyObject *args) {
+ const xmlChar *query;
+
+ LassoNode *response = NULL;
+
+ if (CheckArgs(args, "S:register_name_identifier_response_new_from_request_query")) {
+ if(!PyArg_ParseTuple(args, (char *) "s:register_name_identifier_response_new_from_request_query",
+ &query))
return NULL;
}
else return NULL;
- response = lasso_register_name_identifier_response_new(providerID,
- statusCodeValue,
- LassoRegisterNameIdentifierRequest_get(request_obj));
+ response = lasso_register_name_identifier_response_new_from_query(query);
return (LassoRegisterNameIdentifierResponse_wrap(LASSO_REGISTER_NAME_IDENTIFIER_RESPONSE(response)));
}
diff --git a/python/protocols/py_register_name_identifier_response.h b/python/protocols/py_register_name_identifier_response.h
index 05e137cf..d2ae6c81 100644
--- a/python/protocols/py_register_name_identifier_response.h
+++ b/python/protocols/py_register_name_identifier_response.h
@@ -36,6 +36,11 @@ typedef struct {
#define LassoRegisterNameIdentifierResponse_get(v) (((v) == Py_None) ? NULL : (((LassoRegisterNameIdentifierResponse_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
PyObject *LassoRegisterNameIdentifierResponse_wrap(LassoRegisterNameIdentifierResponse *response);
-PyObject *register_name_identifier_response_new(PyObject *self, PyObject *args);
+PyObject *register_name_identifier_response_new_from_request_soap(PyObject *self, PyObject *args);
+PyObject *register_name_identifier_response_new_from_soap(PyObject *self, PyObject *args);
+PyObject *register_name_identifier_response_new_from_dump(PyObject *self, PyObject *args);
+PyObject *register_name_identifier_response_new_from_request_query(PyObject *self, PyObject *args);
+PyObject *register_name_identifier_response_new_from_query(PyObject *self, PyObject *args);
+
#endif /* __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_RESPONSE_H__ */