[PATCH] invoice creation with python-bindings and value of stability patch

Mark Jenkins mark at parit.ca
Tue Jun 22 17:33:23 EDT 2010


Mike Evans wrote:
> I've tried these patches and they seem to work fine.  A few chunks failed so  
> some manual editing was required.  Not done any extensive testing as yet 
> though, but business data now load and save.

They're tested to be applicable without error against 19260 if applied
in the following order:
nice_example_python_scripts.patch,
python_bindings_gncnumeric_and_accounttype_constants.patch,
python_bindings_stability_without_guile.patch,
python_bindings_business_invoice_support_and_examples.patch

You've convinced me that I should go the extra mile here. I'm going to
port stability improvements to be applicable to upstream without the
other patches, port the invoicing support to be directly applicable
without the other patches, and port the stability patch to be applicable
after that, and file two bug reports:
 1) Business objects disappear when using python bindings
  - attach fix_broken_business_objects_python_bindings.patch
  - attach python_bindings_stability_without_guile.patch

 2) Python bindings are unstable
  - attach python_bindings_stability_without_guile.patch (applicable on
its own)
  - attach python_bindings_business_invoice_support_and_examples.patch
(which brings out the instability clearly) and
python_bindings_stability_without_guile.patch which fixes things up


> Ah, actually, small bug.  I was testing using the mysql backend.  
> session = Session("xml://path/to/file") doesn't work:

You need :// finish specifying protocol, and a third slash to specify
root on your file system: xml:///path/to/file.

Same with sqlite3:// .


Mark Jenkins


More information about the gnucash-devel mailing list