1.1.6: 2006-10-10 Murray Cumming * glom/libglom/python_embed/py_glom_record.cc: Actually implement the record.connection attribute. This is incredibly easy with pyobject_new(). Added a record.table_name attribute. See http://www.glom.org/wiki/index.php?title=Calculated_Fields_API#Using_the_full_pygda_API to see the wonderful things this makes possible. 2006-10-09 Daniel Holbach * glom/mode_data/dialog_layout_list_related.h: Removed the class prefix from the method declaration, to fix the build. 2006-10-09 Murray Cumming * glom/base_db.cc: * glom/base_db.h: Added get_primary_key_is_in_foundset(). * glom/mode_data/notebook_data.cc: init_db_details(): Do not bother checking whether the found set has changed, because it has always changed when we are navigating to a different table. Therfore, always try to view the last-viewed record for the table. But use get_primary_key_is_in_foundset() to prevent showing a not-found record when doing a find. * glom/reports/report_builder.cc: Put parts of the where clause in brackets, so that the AND has the desired effect, though I do not know of any bug caused by this. 2006-10-08 Murray Cumming * glom/python_embed/glom_python.cc: * glom/python_embed/glom_python.h: glom_execute_python_function_implementation(): Added Gda::Connection parameter, which is passed to PyGlomRecord_SetFields(). * glom/libglom/python_embed/py_glom_record.cc: * glom/libglom/python_embed/py_glom_record.h: Record_getseters(): Added connection attribute to the python object, so that scripts can use the pygda API on the underlying database. BUT: This just returns None at the moment. PyGlomRecord_SetFields(): Take an extra connection parameter. * glom/base_db.cc: calculate_field(): * glom/layout_item_dialogs/dialog_buttonscript.cc: on_button_test(): * glom/mode_data/box_data.cc: set_primary_key_value(): * glom/mode_data/box_data_details.cc: on_flowtable_script_button(): * glom/mode_design/fields/dialog_fieldcalculation.cc: on_button_test(): Pass the extra connection parameter when calling glom_evaluate_python_function_implementation().