From 93ee9083730057521db9841c1b1e22ebf07a79bb Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 29 Apr 2008 12:02:06 +0000 Subject: [project @ fpeters@0d.be-20071005200614-dahkk1xuq6pbumbo] wrap constants & enums; is now possible: login = lasso.Login(server) login.initAuthnRequest('https://idp1/metadata', lasso.HTTP_METHOD_REDIRECT) login.buildAuthnRequestMsg() Original author: Frederic Peters Date: 2007-10-05 22:06:14.800000+02:00 --- bindings/lang_python_wrapper_bottom.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bindings/lang_python_wrapper_bottom.c') diff --git a/bindings/lang_python_wrapper_bottom.c b/bindings/lang_python_wrapper_bottom.c index 5f1220c3..82e74ecc 100644 --- a/bindings/lang_python_wrapper_bottom.c +++ b/bindings/lang_python_wrapper_bottom.c @@ -1,12 +1,15 @@ PyMODINIT_FUNC init_lasso(void) { - PyObject *m; + PyObject *m, *d; if (PyType_Ready(&PyGObjectPtrType) < 0) return; m = Py_InitModule3("_lasso", lasso_methods, "_lasso wrapper module"); + d = PyModule_GetDict(m); + register_constants(d); + lasso_init(); lasso_wrapper_key = g_quark_from_static_string("PyLasso::wrapper"); -- cgit