summaryrefslogtreecommitdiffstats
path: root/bindings/python/wrapper_top.c
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite all xmlNode serialization code to be compatible with libxml 2.9.0Benjamin Dauvergne2012-09-281-11/+23
| | | | | | | | | | Libxml stopped exposing the internal of the xmlOutputBuffer structure; it was replace by proper use of the API and of the xmlBuffer structure. There could be regression for older version of libxml as some functions appeared in recent version of libxml; but the reference API document does not give any introduction date for functions so it's hard to be sure.
* [binding python] prevent warning in wrapper_top.c under hardy with gcc 4.2.4Benjamin Dauvergne2011-11-181-1/+2
|
* [Bindings] accept simple string in string<->xmlNode converterBenjamin Dauvergne2010-06-291-11/+4
| | | | | | | | | | Some use case ask for passing simple libxml content node (i.e just an UTF-8 string) when a method argument or a field of the xmlNode* type. This commit add a static method in bindings/utils.c named lasso_string_fragment_to_xmlnode which does this transform by trying to parse an XML document then by trying to parse a well balanced XML fragment of only one node (if there is more than one node such as in the string " xxx <tag/> yyy ", we free the node list and return NULL).
* Binding python: find a work around for random behaviour of PyImport_ImportModuleBenjamin Dauvergne2010-06-121-2/+6
| | | | | | | * it seems that PyImport_ImportModule is not deterministic. Sometimes it returns True for modules which we know are present ('logging'). Importing 'sys' first seems to make 'logging' accessible (complete cargo cult programming).
* Binding python: fix bad refcounting in get_logger and lasso_python_logBenjamin Dauvergne2010-06-121-7/+13
|
* Binding python: if lasso.logger exists use it for loggingBenjamin Dauvergne2010-06-101-8/+28
| | | | | | * There is now two paths to get a logger in the python binding: - first try to get an objet from lasso.logger - if it doesn't exist or is None, the try logging.getLogger('lasso')
* Binding python: add GLog handler to redirect logs to Python logger named "lasso"Benjamin Dauvergne2010-06-091-0/+42
| | | | * fixes #20
* Binding python: for empty GList return empty tuples, not NoneBenjamin Dauvergne2010-04-061-12/+12
|
* Bindings: use lasso_return_xxx macros instead of GLib onesBenjamin Dauvergne2010-02-011-3/+3
|
* Bindings: java, php5, python simplify logic in binding generatorBenjamin Dauvergne2010-01-281-0/+68
| | | | | | * use utils.h macros to manipulate fields. * use utils.py function to filter variables, argument and return types. * finish support of hashtables of strings for php5 and python.
* Python binding: add a pyobject->time_t conversion functionBenjamin Dauvergne2010-01-041-2/+20
|
* Bindings python: in wrapper_top.c, mark internal function as potentially unusedBenjamin Dauvergne2010-01-041-13/+14
|
* Python Binding: fix bug of uninitialized ppos argument to PyDict_NextBenjamin Dauvergne2009-06-151-2/+3
| | | | | | | | | | * bindings/pyhton/wrapper_top.c (set_hashtable_of_pygobject): second argument (int*ppos) of PyDict_Next must be reinitialized to zero before each traversal (see Python C API http://docs.python.org/c-api/dict.html). Patch from Iban Rodríguez of the Desarrollo de Producto Electrónico, Spain.
* Fix leak in python bindingBenjamin Dauvergne2009-04-301-3/+3
| | | | | * bindings/python/wrapper_top.c: keep a pointer on beginning of list to free it.
* Fix python 2.4 binding buildJerome Schneider2009-04-171-0/+6
|
* Fix build issues on amd64 / gcc 4.3Jerome Schneider2009-04-091-1/+1
| | | | | | | | | * bindings/java/lang.py: fix cast issue * bindings/python/wrapper_top.c fix type issue * lasso/registry.c fix cast issue
* All: Fix missing field initializer problemsBenjamin Dauvergne2009-01-241-3/+5
| | | | | | * lots of files: Explicitely set all field of initialized structures, in order to remove -Wno-missing-field-initilizers from needed compiler options when using -Wall -Wextra.
* Remove use of xmlFreeDoc for lasso_release_docBenjamin Dauvergne2008-11-041-1/+2
| | | | | | | | | | | | | | - bindings/java/wrapper_top.c, bindings/php4/lasso_php4_helper.c, bindings/php5/wrapper_source_top.c, bindings/python/wrapper_top.c, lasso/id-ff/identity.c, lasso/id-ff/lecp.c, lasso/id-ff/login.c, lasso/id-ff/logout.c, lasso/id-ff/name_registration.c, lasso/id-ff/profile.c, lasso/id-ff/provider.c, lasso/id-ff/server.c, lasso/id-ff/session.c, lasso/id-wsf-2.0/data_service.c, lasso/id-wsf/data_service.c, lasso/id-wsf/discovery.c, lasso/id-wsf/wsf_profile.c, lasso/saml-2.0/ecp.c, lasso/saml-2.0/login.c, lasso/saml-2.0/name_id_management.c, lasso/utils.h, lasso/xml/tools.c, lasso/xml/xml.c, swig/Lasso.i: Remove use of xmlFreeDoc. Use lasso_release_doc instead.
* add functionality to enable debugging flags at runtimeBenjamin Dauvergne2008-10-011-6/+7
| | | | | | | | | | | | | | | | | | | | | | This code permit to set flags, separated by commas, space, tabulations, or colons. This flags activates debug functions like, suppressing validations of signatures or print debugging message about deallocations. The new flags are defined in /lasso/debug.h they can be set using an environment variable named LASSO_FLAG or a function named lasso_set_flag. There are two flags currently: - verify-signature: To deactivate it, pass 'no-verify-signature' inside LASSO_DEBUG. It desactivate signature verification, inside two functions: lasso_query_verify_signature and lasso_provider_verify_signature. - memory-debug: It enabled reporting of memory deallocation inside generic memory dellaocator for LassoNode objects and also in bindings. - lasso/xml/xml.c: do not free a null hash table pointer.
* * Remove ending blanksBenjamin Dauvergne2008-09-121-21/+21
|
* * Add G_GNUC_UNUSED for unused parameter we can't remove (python wrappers).Benjamin Dauvergne2008-09-121-1/+1
|
* Move all python binding related files inside the python subdirectoryBenjamin Dauvergne2008-08-051-0/+502