summaryrefslogtreecommitdiffstats
path: root/bindings/python
Commit message (Collapse)AuthorAgeFilesLines
* Binding python tests: update idwsf1 to explicitely register PP10 HREFBenjamin Dauvergne2010-04-061-0/+1
|
* Binding python: update idwsf2 test for method change dst.initResponse -> ↵Benjamin Dauvergne2010-04-061-1/+1
| | | | validateRequest
* Binding python: fix use of raise_on_rc, simplift Node.__setstate__Benjamin Dauvergne2010-04-061-7/+6
|
* Binding python: for empty GList return empty tuples, not NoneBenjamin Dauvergne2010-04-062-18/+18
|
* Binding python: fix problem of classes without an initializerBenjamin Dauvergne2010-03-271-5/+7
|
* ID-WSF 2.0 python tests: finish tests for new ID-WSF 2.0 APIBenjamin Dauvergne2010-03-021-26/+157
| | | | | | | * bindings/python/tests/idwsf2_tests.py: all Discovery service request types are tested, and Data Service query is tested as well. Data Service testing and API should more tested, especially failure cases.
* Binding python: accept a functio as setter, if it has only two argumentsBenjamin Dauvergne2010-03-021-1/+1
|
* Bindings python: use more accessors from utils.pyBenjamin Dauvergne2010-02-221-41/+31
| | | | | * binings/python/lang.py: remove direct access to type tuples in favor of using accesors from utils.py.
* Binding python: add pickling support to LassoNodeBenjamin Dauvergne2010-02-221-0/+10
| | | | | | | * bindings/python/lang.py: support pickling protocol methods __getstate__ and __setstate__ leveraging the lasso_node_dump and lasso_node_new_from_dump methods from Lasso.
* Bindings python tests: update idwsf2_tests.pyBenjamin Dauvergne2010-02-221-1359/+160
|
* Current state of ID-WSF 2.0 python testBenjamin Dauvergne2010-02-171-6/+76
|
* Current state of idwsf2 testsBenjamin Dauvergne2010-02-171-44/+59
|
* Binding python: simplify special constructor, use cptrToPyBenjamin Dauvergne2010-02-171-5/+1
|
* Binding python tests: adapt test to use TOP_SRCDIR env varBenjamin Dauvergne2010-02-172-4/+4
|
* Binding python: factorize value freeing generation codeBenjamin Dauvergne2010-02-171-3/+31
| | | | | | | * lasso/python/lang.py: extract value freeing generation code to method free_value, add proper liberation of values at exit of wrapper functions, remove g_free call from return_value generated code.
* in idwsf2_tests.py, merge test case for metadata registering, add test case ↵Benjamin Dauvergne2010-02-171-144/+178
| | | | for failure
* Binding python: fix leak in string gettersBenjamin Dauvergne2010-02-151-1/+1
|
* Bindings python: udpate id-wsf 2.0 test fileBenjamin Dauvergne2010-02-151-122/+105
| | | | | | * bindings/python/tests/idwsf2_tests.py: Disco Service registering is working, it now needs a bootstrap epr in all case (before registering could be done without signatures).
* Bindings python: remove default argument if there is parameters without ↵Benjamin Dauvergne2010-02-121-0/+25
| | | | default argument following
* Bindings: restore ID-WSF constants, improve python getters,Benjamin Dauvergne2010-02-041-80/+62
| | | | | | | | | | | | | | | * bindings/bindings.py: parse idwsf_strings.h to get ID-WSF constants. * bindings/utils.py: add an is_rc check function, to check for 'error code' return type. * bindings/perl/lang.py: only raise errors for 'int' or 'gint' return type * bindings/python/lang.py: - always create a normal function binding. - for functions starting with 'get' try to create a corresponding property, but if a corresponding member already exists, fails, and print a warning about getter function/member field clash. - make type dispatching on return_type more explicite.
* Binding python: fix getter for non-object fieldsBenjamin Dauvergne2010-02-041-5/+13
| | | | | * bindings/python/lang.py: transition to bindings/utils.py methods broke getters.
* Bindings: use lasso_return_xxx macros instead of GLib onesBenjamin Dauvergne2010-02-011-3/+3
|
* Bindings: make binding generation more silentBenjamin Dauvergne2010-02-011-1/+1
| | | | | | | | * bindings/java/Makefile.am bindings/perl/Makefile.am bindings/php5/Makefile.am bindings/python/Makefile.am: use AM_V_GEN, or similar variable for all steps of binding generation, normal output can be activated with the V=1 argument to the 'make' command.
* Binding python: make a better use of default value annotation for creating ↵Benjamin Dauvergne2010-01-291-1/+4
| | | | method declarations
* Bindings python ID-WSF 1.0 tests: update PP HREF symbolBenjamin Dauvergne2010-01-281-9/+9
|
* Binding python ID-WSF 2.0 tests: update some testsBenjamin Dauvergne2010-01-281-2/+6
|
* Binding Python ID-WSF 2.0: comment out testBenjamin Dauvergne2010-01-281-1/+1
|
* Bindings: java, php5, python simplify logic in binding generatorBenjamin Dauvergne2010-01-283-148/+205
| | | | | | * 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.
* Add bindings/python/examples to dist fileBenjamin Dauvergne2010-01-161-1/+1
|
* Bindings python: use is_cstring for matching GList element typeBenjamin Dauvergne2010-01-141-1/+1
|
* Bindings: add support for time_t to bindings, add support for 'string' type ↵Benjamin Dauvergne2010-01-121-1/+1
| | | | for list in java binding
* Binding python: provide old binding name for set_encryptionModeBenjamin Dauvergne2010-01-121-0/+1
|
* Bindings: simplify GList handlingBenjamin Dauvergne2010-01-041-36/+56
|
* Bindings: in bindings/python/Makefile.am, precise generated files dependenciesBenjamin Dauvergne2010-01-041-0/+2
|
* Python binding: update test scripts to new ID-WSF APIBenjamin Dauvergne2010-01-042-34/+61
|
* 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
|
* Bindings: make the binding infrastructure understand GObject-introspections ↵Benjamin Dauvergne2010-01-044-103/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | annotations * bindings/bindings.py * bindings/utils.py: add convenience function to treat arguments tuple: (type,name,{annotations}). introduce new argument options, fix that arguments are 3-tuple of the form (type,name,annotations), where annotations is a dictionary. Key of this dictionnary can be: - optional, wheter the argument is necessary, it means it has a default value. - out, means that the pointer is a pointer of pointer, for bindings that can return exceptions, it will be returned instead of the integer error code, the only way to access error codes will be exceptions. - element-type, contained type of a list or an array, - key-type, value-type, type of respectively the key and value of a GHashTable. - transfer, wheter a the callee(for arguments)/caller(for return values) owns the values passed, it can be none,container(if the callee/caller only owns the container not the contained value) or full. doc.parameters is now a 3-tuple of (attribute-name, attribute-description, attribute-annotations) where attribute-annotations is a string of the form '(option1)(option2 option-arguments) etc.'. - add predicates for xml, list and time_t values. improve predicates for cstring and const modifier. * bindings/overrides.xml: 'out' arguments are not well supported for java, so skip functions using them. * bindings/java/lang.py bindings/php5/php_code.py bindings/php5/wrapper_source.py bindings/python/lang.py: - update language specifig binding generators for handling new annotations. - improve python method declaration, handle optional arguments with default values, factorize this chode in two methods, get_python_arg_decl and defval_to_python_value. * bindings/python/tests/Makefile.am bindings/python/tests/idwsf1_tests.py bindings/python/tests/idwsf2_tests.py: make test work with out of source build dir.
* Bindings: add support for gucharBenjamin Dauvergne2009-09-111-5/+5
| | | | | | * bindings/java/lang.py: * bindings/python/lang.py: add guchar to list of C types everywhere.
* 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
* ID-WSF 2.0: make it work with --enabe-debuggingBenjamin Dauvergne2009-03-271-6/+0
| | | | | | | | | | | | | * lasso/id-wsf-2.0/data_service.c: * lasso/id-wsf-2.0/discovery.c: * lasso/id-wsf-2.0/profile.c: * lasso/id-wsf/data_service.c: * lasso/id-wsf/discovery.c: * lasso/id-wsf/wsf_profile.c: when --enable-debugging is activated much more type checking is done by internal macros, and code do not pass compile anymore. * bindings/python/tests/idwsf2_tests.py: nameIdentifier packing in SOAP ID-WSF calls headers is no longer supported, do not test it.
* 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.
* Clean generated files in bindingsBenjamin Dauvergne2008-11-041-0/+1
| | | | | | | | * bindings/java/Makefile.am: * bindings/php5/Makefile.am: * bindings/python/Makefile.am: - reformat value and add generated files to the MOSTLYCLEANFILES variable
* 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-128-60/+60
|
* * When --enable-debugging is used, add -Wno-xxx options to AM_CFLAGS so thatBenjamin Dauvergne2008-09-121-1/+1
| | | | bindings compile with -Werror (-Werror is activated by --enable-debugging now)