1.14.2: 2010-05-02 Murray Cumming Python calculations: Really convert to expected types. * glom/libglom/data_structure/glomconversions.cc: get_double_for_gda_value_numeric(): Handle all numeric GTypes - not just G_TYPE_INT.. convert_value(): Remove the special case for G_TYPE_INT (now handled in get_double_for_gda_value_numeric instead). Make sure that all numeric GTypes are converted to GDA_TYPE_NUMERIC, making it easier for callers to check. 2010-05-01 Murray Cumming Add test of type conversion after python calculations. * Makefile_tests.am: * tests/test_python_execute_func_change_result_type.cc: Add a test that calls a python function that returns a number, for a text field, to check that the conversion is done. 2010-05-01 Murray Cumming Python scripts and calculations: Test buttons now show python errors. * glom/python_embed/glom_python.[h|cc]: glom_execute_python_function_implementation(), glom_evaluate_python_function_implementation(): Add an error_message output parameter, to report syntax errors, for instance. * glom/mode_design/fields/dialog_fieldcalculation.cc: * glom/mode_design/layout/layout_item_dialogs/dialog_buttonscript.cc: Show the python error, if any, when pressing the Test button. * Other files: Adapt, ignoring the error message for now. * Makefile_tests.am: * tests/test_python_execute_func_bad_syntax.cc: Added a test of the new error_message parameter. 2010-05-01 Murray Cumming Fix a possible crash when showing choices. * glom/mode_data/datawidget/combo.cc: set_text(): Don't show a warning if "" is not found because it's OK to use that to clear the combo. * glom/mode_data/datawidget/combochoiceswithtreemodel.cc: set_choices_with_second(): Don't dereference a null smartpointer, avoiding a crash with one .glom file that I tried. 2010-05-01 Murray Cumming Python Glom API documentation improvement. * glom/python_embed/python_module/py_glom_module.cc: Turn off auto-writing of the Python signatures in the docstrings, because that is a) crappy and b) confuses the sphinx autodoc module, which adds an invisible ..function reStrucuredText line. Add :param:, :type, and :returns: lines with the necessary indenting and empty lines needed by that invisible ..function line. 2010-05-01 Murray Cumming Fix document saving (recently broken by me) and add a test for it. * glom/libglom/document/bakery/document.cc: write_to_disk(): Do not fail if the parent directory already exists. * Makefile_tests.am: * tests/test_document_autosave.cc: Added a test of document saving and autosaving. 2010-05-01 Murray Cumming Move tests out of sub-directories, simplifying the build file. * tests/Makefile_test.am: * tests/test_document_load.cc: * tests/test_selfhosting_new_empty.cc: Move out of the sub-directories, because they do not need extra files. 2010-04-27 Murray Cumming PyGlom: Don't use deprecated boost::python::args. * glom/python_embed/python_module/py_glom_module.cc: Use boost::python::arg() instead of boost::python::args(), because I noticed that args is deprecated.