summaryrefslogtreecommitdiffstats
path: root/python/environs/py_federation_termination.c
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2004-07-19 12:25:35 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2004-07-19 12:25:35 +0000
commit8c0b0cb66780eb70c8f2cc0331bdaf4f78c8fc48 (patch)
treebf46ad727891d3a9126fa679a1680b2c75df2f30 /python/environs/py_federation_termination.c
parent6585a27baffa20d757d1d93cf11264cb593a6910 (diff)
downloadlasso-8c0b0cb66780eb70c8f2cc0331bdaf4f78c8fc48.tar.gz
lasso-8c0b0cb66780eb70c8f2cc0331bdaf4f78c8fc48.tar.xz
lasso-8c0b0cb66780eb70c8f2cc0331bdaf4f78c8fc48.zip
update federation termination
Diffstat (limited to 'python/environs/py_federation_termination.c')
-rw-r--r--python/environs/py_federation_termination.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/python/environs/py_federation_termination.c b/python/environs/py_federation_termination.c
index a9e9718d..6f6d0902 100644
--- a/python/environs/py_federation_termination.c
+++ b/python/environs/py_federation_termination.c
@@ -42,6 +42,36 @@ PyObject *LassoFederationTermination_wrap(LassoFederationTermination *federation
/******************************************************************************/
+PyObject *federation_termination_getattr(PyObject *self, PyObject *args) {
+ PyObject *federation_termination_obj;
+ LassoFederationTermination *federation_termination;
+ const char *attr;
+
+ if (CheckArgs(args, "OS:federation_termination_get_attr")) {
+ if (!PyArg_ParseTuple(args, "Os:federation_termination_get_attr", &federation_termination_obj, &attr))
+ return NULL;
+ }
+ else return NULL;
+
+ federation_termination = LassoFederationTermination_get(federation_termination_obj);
+
+ if (!strcmp(attr, "__members__"))
+ return Py_BuildValue("[ssss]", "user", "msg_url", "msg_body",
+ "msg_relayState");
+
+ if (!strcmp(attr, "user"))
+ return (LassoUser_wrap(LASSO_PROFILE_CONTEXT(federation_termination)->user));
+ if (!strcmp(attr, "msg_url"))
+ return (charPtrConst_wrap(LASSO_PROFILE_CONTEXT(federation_termination)->msg_url));
+ if (!strcmp(attr, "msg_body"))
+ return (charPtrConst_wrap(LASSO_PROFILE_CONTEXT(federation_termination)->msg_body));
+ if (!strcmp(attr, "msg_relayState"))
+ return (charPtrConst_wrap(LASSO_PROFILE_CONTEXT(federation_termination)->msg_relayState));
+
+ Py_INCREF(Py_None);
+ return (Py_None);
+}
+
PyObject *federation_termination_new(PyObject *self, PyObject *args) {
PyObject *server_obj, *user_obj;
LassoFederationTermination *federation_termination;