1. 14 Dec, 2009 3 commits
  2. 10 Dec, 2009 3 commits
    • Murray Cumming's avatar
      example_film_manager.glom: Added silly example data, · a5a1ff74
      Murray Cumming authored
      fixing bug #600859 (Michael Hasselmann)
      a5a1ff74
    • Murray Cumming's avatar
      Tests: Validate all examples against the DTD, and correct the DTD. · d6520fbc
      Murray Cumming authored
      * tests/dtd/test_example_sqlite: Renamed to test_file_validation.sh.
      * glom/Makefile_tests.am: Adapted.
      * glom/libglom/document/document.cc: save_before(): Correct the saving
      of group privileges so they are really inside the group nodes. Avoid
      saving unnamed groups, as seen in the example files.
      * glom/glom_document.dtd: Several corrections to fix the validation of
      the example files, though I don't like that DTDs don't seem to give
      us any way to say that the sequence of child elements is irrelevant.
      I don't like enforcing the sequence.
      d6520fbc
    • Murray Cumming's avatar
      Fix distcheck. · c155ba0b
      Murray Cumming authored
      * Makefile.am:
      * Makefile_tests.am: Fix the distcheck by disting the DTD validation
      test script and the .glom file that it uses.
      * glom/libglom/init.cc: Redefine Python's PyDateTime_IMPORT macro,
      to avoid a compiler warning. See http://bugs.python.org/issue7463
      * glom/main.cc: Avoid including Python's datetime.h, to avoid the same
      compiler warning.
      c155ba0b
  3. 09 Dec, 2009 2 commits
    • Murray Cumming's avatar
      Tests: Complete the test_python_execute_func_date test. · 6f260a81
      Murray Cumming authored
      * glom/libglom/python_embed/pygdavalue_conversions.c
      (glom_pygda_value_from_pyobject): Use g_date_new_dmy() so the GDate
      is really completely initialized, avoiding errors about invalid dates.
      * tests/test_python_execute_func_date.cc: Check the return type and
      value, by comparing the python result with the current date.
      Bug is now really fixed #603686. (Andrew Ruthven)
      6f260a81
    • Murray Cumming's avatar
      Fix the crash when calling python functions that return dates. · bb9448a9
      Murray Cumming authored
      * glom/libglom/python_embed/pygdavalue_conversions.c
      (glom_pygda_value_from_pyobject): Call the macro PyDateTime_IMPORT here,
      though it was already called in libglom_init(). I don't know why this
      fixes the crash, but it does. Bug #603686. (Andrew Ruthven)
      bb9448a9
  4. 08 Dec, 2009 1 commit
  5. 07 Dec, 2009 2 commits
  6. 04 Dec, 2009 3 commits
    • Murray Cumming's avatar
      Rename some functions to avoid fear of linking to the wrong one. · 89e3581c
      Murray Cumming authored
      * glom/libglom/python_embed/pygdavalue_conversions.[h|cc]:
      pygda_value_from_pyobject(), pygda_value_as_pyobject(): Add a glom_
      prefix so we know we are not using the copy in pygda.
      * glom/python_embed/glom_python.cc:
      * glom/libglom/python_embed/py_glom_record.cc:
      * glom/libglom/python_embed/py_glom_relatedrecord.cc: Adapted.
      89e3581c
    • Murray Cumming's avatar
      Field Definitions: Default value: Fix crash when selecting a date. · fd84aaf5
      Murray Cumming authored
      * glom/utility_widgets/datawidget.cc: offer_field_list(),
      offer_field_layout(), offer_related_record_id_find(): Avoid crashes
      caused by calling set_transient_for() with a null parent window,
      for instance from the field definitions dialog.
      fd84aaf5
    • Murray Cumming's avatar
      Field Definitions: Show default value widget for date fields. · 1f59c217
      Murray Cumming authored
      * glom/utility_widgets/datawidget.cc: Constructor: show the
      hbox_parent widget, so the widgets always show up for the default value
      in the field definitio dialog for date fields. The details view must
      be doing this via a show_all() somewhere.
      1f59c217
  7. 03 Dec, 2009 3 commits
    • Murray Cumming's avatar
      Removed debug output. · 26efd929
      Murray Cumming authored
      26efd929
    • Murray Cumming's avatar
      Related Records layout: Field formatting: Choices: Fix related choices. · ac1f179f
      Murray Cumming authored
      * glom/mode_design/layout/dialog_layout_details.[h|cc]
      * glom/mode_design/layout/dialog_layout_list_related.[h|cc]:
      Add virtual get_fields_table() and use this in
      on_button_field_formatting() so that the formatting dialog shows
      relationships for the to table instead of the parent table, when
      editing formatting for a field in a related records portal.
      Bug noticed by Michael Hasselmann and Andrew Ruthven.
      * glom/mode_design/layout/layout_item_dialogs/dialog_field_layout.c:
      Removed some debug output.
      ac1f179f
    • Murray Cumming's avatar
      Allow use of example documents that mention an unsupported backend. · 255ada87
      Murray Cumming authored
      * glom/application.cc: check_document_hosting_mode_is_supported():
      Don't check the backend if it is an example document because the user
      will choose it when saving anyway.
      255ada87
  8. 17 Nov, 2009 5 commits
    • Murray Cumming's avatar
      tests: dtd: Now passes. · 3e00a4fe
      Murray Cumming authored
      * glom/libglom/document/bakery/document_xml.cc: get_node_document():
      Added commented-out code to write the DOCTYPE declaration, if we ever
      want to specify the PUBLIC DTD idenitifier and URI in each document.
      Let's avoid that for now because we'd have to make sure that it's
      hosted properly.
      * tests/dtd/test_example_sqlite: Do not use --valid because that
      seems to always require a DTD in the document's DOCTYPE declaration.
      --dtdvalid seems to do the same thing already, but with the specified
      DTD.
      3e00a4fe
    • Murray Cumming's avatar
      glom_document.dtd: Mention the xmlns attribute because DTD · e4610590
      Murray Cumming authored
      validation doesn't know about XML namespaces.
      e4610590
    • Murray Cumming's avatar
      Document: Ensure that the xmlns ID is always in saved documents. · 9ada3c2f
      Murray Cumming authored
      * glom/libglom/document/bakery/document_xml.cc: get_node_document():
      Make sure that the xmlns ID is added, even when the root node already
      exists, for instance when opening existing documents.
      
      * examples/example_film_manager.glom:
      * examples/example_lesson_planner.glom:
      * examples/example_music_collection.glom:
      * examples/example_project_manager.glom:
      * examples/example_smallbusiness.glom:
      * examples/sqlite/test_sqlite_music/test_sqlite_music.glom:
      Add the xmnls ID, to help to identify the MIME type of these documents.
      9ada3c2f
    • Murray Cumming's avatar
      Document saving: Remove unncessary empty singular_title nodes. · f691bb29
      Murray Cumming authored
      * glom/libglom/document/document.cc: save_before_translations():
      Do not create empty singular_title nodes.
      * examples/example_smallbusiness.glom: Resaved.
      f691bb29
    • Murray Cumming's avatar
      Partly fix the DTD validation test. · d2e05599
      Murray Cumming authored
      * glom/glom_document.dtd: table: Correct the syntax for the child
      elements, to use ?, instead of | because they are all optional, instead
      of being alternatives for each other.
      Add the print_layouts element.
      * Makefile_tests.am: Change the order so the sometimes-hanging import
      tests are at the end, to make the tests more useful.
      d2e05599
  9. 16 Nov, 2009 1 commit
  10. 13 Nov, 2009 1 commit
  11. 12 Nov, 2009 1 commit
  12. 10 Nov, 2009 1 commit
  13. 06 Nov, 2009 3 commits
  14. 04 Nov, 2009 3 commits
  15. 02 Nov, 2009 3 commits
  16. 30 Oct, 2009 5 commits