summaryrefslogtreecommitdiffstats
path: root/bindings/python/lang.py
Commit message (Collapse)AuthorAgeFilesLines
* [bindings/python] fix some indentationBenjamin Dauvergne2012-05-051-1/+1
|
* [bindings/python] boolean values does not need to be releasedBenjamin Dauvergne2012-05-051-2/+2
|
* [bindings python] make constructor failure raise a lasso.Error exceptionBenjamin Dauvergne2010-12-141-1/+1
|
* [Strings] add string constant for the internal XML attributes used in dumpsBenjamin Dauvergne2010-09-031-1/+1
| | | | | | | | | Add string constants for signature method, signature type, private key (file path or content), private key password and certificate (file path or content). Add cast for xmlChar constant strings definition in python bindings, it assumed all constant strings were char*.
* [Python binding] do not throw lasso.Error for python exceptionsBenjamin Dauvergne2010-07-051-1/+1
|
* Binding python: fix freeing of list return values for methods with the ↵Benjamin Dauvergne2010-06-141-3/+3
| | | | | | transfer full flag The output 'print' were missing, oups :(
* Binding python: call lasso_init() first in init_lasso()Benjamin Dauvergne2010-06-091-2/+0
|
* Bindings: keep retro compatibility for member field namesBenjamin Dauvergne2010-06-061-0/+3
| | | | | | | * Special kludge price go to PHP: methods name are insensitive so nothing to do here, BUT, if you use getters/setters then your objects fields can be case insensitive too ;-) (DNS, dns, DnS, dNs all maps to get_dns ).
* Binding python: fix use of raise_on_rc, simplift Node.__setstate__Benjamin Dauvergne2010-04-061-7/+6
|
* Binding python: fix problem of classes without an initializerBenjamin Dauvergne2010-03-271-5/+7
|
* 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.
* Binding python: simplify special constructor, use cptrToPyBenjamin Dauvergne2010-02-171-5/+1
|
* 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.
* Binding python: fix leak in string gettersBenjamin Dauvergne2010-02-151-1/+1
|
* 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.
* Binding python: make a better use of default value annotation for creating ↵Benjamin Dauvergne2010-01-291-1/+4
| | | | method declarations
* Bindings: java, php5, python simplify logic in binding generatorBenjamin Dauvergne2010-01-281-84/+121
| | | | | | * 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.
* 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: make the binding infrastructure understand GObject-introspections ↵Benjamin Dauvergne2010-01-041-88/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * Remove ending blanksBenjamin Dauvergne2008-09-121-4/+4
|
* * Add G_GNUC_UNUSED for unused parameter we can't remove (python wrappers).Benjamin Dauvergne2008-09-121-3/+3
|
* Lookup wrapper_{top,bottom}.c files in the src_dir, useful for VPATH buildBenjamin Dauvergne2008-08-051-2/+3
| | | | (i.e. distcheck). Add top_srcdir/binings to python syspath.
* Move all python binding related files inside the python subdirectoryBenjamin Dauvergne2008-08-051-0/+887