1.18.1: 2011-04-04 Murray Cumming Require the latest mm-common and dist the mm-common scripts. * configure.ac: Add a MM_CONFIG_DOCTOOL_DIR() call so that the scripts will be distributed with the tarball, avoiding a runtime dependency on mm-common. 2011-03-30 Murray Cumming A simpler way to avoid the PyDateTime_Check() crash. * glom/libglom/init.cc: libglom_init(): Remove the g_assert because this can fail: See bug #644702. * glom/libglom/python_embed/pygdavalue_conversions.cc: glom_pygda_value_as_boost_pyobject(): Check that the local re-import (hopefully cached by Python) succeeded, to avoid a crash in PyDateTime_Check(). 2011-03-14 Murray Cumming Reverted the previous commit to prevent a crash if PyDateTime_IMPORT fails. * glom/libglom/init.[h|cc]: Added libglom_pydatetime_import() and libglom_pydatetime_imported(). Remove the g_assert() when it fails. * glom/libglom/python_embed/pygdavalue_conversions.cc: Use the new utility function instead of repeating our reimplementation here. There will now just be an error message on stderr. We must fix this properly but in the meantime it is better than requiring the use of a separate glom branch just for OnlineGlom. See https://bugzilla.gnome.org/show_bug.cgi?id=644702 This commit was reverted because we really must repeat the implementation everywhere, because the PyDateTime variable is declared in Python's datetime.h header, and the macros then try to use that local instance. The copy in init.cc is not available to callers. And we cannot include datetime.h from init.h because it is full of other problems that cause compiler warnings. 2011-03-18 Murray Cumming libglom: Added utils::build_sql_select_count_rows(). * glom/base_db.[h|cc]: Make count_rows_returned_by() take a const SqlBuilder. * glom/libglom/utils.[h|cc]: Move some of count_rows_returned_by() into a build_sql_select_count_rows() method, for the convenience of UIs such as OnlineGlom. Bug #645110 (Ben Konrath) 2011-03-18 Murray Cumming ComboEntry: Really have an entry. * glom/mode_data/datawidget/comboentry.cc: Constructor: Pass true to the base constructor so that this Gtk::ComboBox really has an entry. This was a mistake while avoiding use of deprecated API in gtkmm 2.24. 2011-03-18 Murray Cumming ComoboEntry: Check for a null Entry. * glom/mode_data/datawidget/comboentry.cc: Always check the result of Gtk::ComboBox::get_entry() for null before dereferencing it, to prevent a crash. However, this probably shouldn't happen, so I might investigate more. This fixes bug #645041 (Ben Konrath) 2011-03-14 Murray Cumming Do not crash if PyDateTime_IMPORT fails. * glom/libglom/init.[h|cc]: Added libglom_pydatetime_import() and libglom_pydatetime_imported(). Remove the g_assert() when it fails. * glom/libglom/python_embed/pygdavalue_conversions.cc: Use the new utility function instead of repeating our reimplementation here. There will now just be an error message on stderr. We must fix this properly but in the meantime it is better than requiring the use of a separate glom branch just for OnlineGlom. See https://bugzilla.gnome.org/show_bug.cgi?id=644702 2011-03-14 Murray Cumming Require the latest libgdamm, because we use its latest API. * configure.ac: Require libgdamm 4.1.2. 2011-03-14 Murray Cumming Make glom-1.18 parallel-installable with glom-1.16 * configure.ac: Increase the ABI version. * glom/python_embed/python_module/py_glom_module.cc: Load the correct python version. I forgot to do this before. 2011-03-14 Murray Cumming Fix the build. * glom/libglom/init.cc: Add an include so we can use std::cerr. 2011-03-14 Murray Cumming libglom_init(): Show the python exception when PyDateTime_IMPORT fails. * glom/libglom/init.cc: The linker seems to behave differently when this code is run from inside a JVM in OnlineGlom. This gives us a clue. 2011-02-26 Murray Cumming Fix the CSV import test. * tests/import/test_parsing.cc: Correct the number of expected tokens. This was previously just the number that was (incorrectly) parsed before. 2011-02-26 Murray Cumming CSV Import: Fix quoted-newline detection, so we don't drop rows. * glom/import_csv/csv_parser.[h|cc]: on_idle_parse(): Make in_quotes a member variable, initialized in clear(), so we remember it across calls to on_idle_parse(), instead of thinking that we are in quotes just because we are parsing arbitrary chunks of bytes that look that way individually. This fixes bug #637529 (Darmon Xavier), so all rows should be imported instead of dropping some in the middle.