1. 19 Apr, 2010 1 commit
    • Murray Cumming's avatar
      Try to use sphinx for pyglom API documentation. · f9199079
      Murray Cumming authored
          * docs/pyglom_reference/Makefile.an:
      * docs/pyglom_reference/sphinx_sources/:
          An attempt to use sphinx instead of pydoc. sphinx is used by Python itself.
          I need to change my Python setup (not have Python in jhbuild) to test
          this properly, because I can't easily build pydoctor in my separate prefix.
      f9199079
  2. 18 Apr, 2010 2 commits
  3. 17 Apr, 2010 1 commit
  4. 16 Apr, 2010 2 commits
    • Murray Cumming's avatar
      Python: Really show warnings when modules can't be imported. · 6c2ffabf
      Murray Cumming authored
      * glom/python_embed/glom_python.cc: Add and use import_module() to make sure
      that we catch exceptions from boost::python::import(), so show the intended
      warnings instead of just crashing with an uncaught exception.
      Also correct the checks for empty/none boost::python::objects for imported
      modules. A simple ! is not what it seems.
      6c2ffabf
    • Murray Cumming's avatar
      Use mm-common for optional compiler warnings and to build libglom docs. · 273b80f5
      Murray Cumming authored
          * configure.ac: Use mm-common, removing macros/dk-warn.m4.
      * docs/libglom_reference/Doxyfile.in:
      * docs/libglom_reference/doxygen_to_devhelp.xsl:
      * docs/libglom_reference/Makefile.am: Generate libglom documentation
          properly using build stuff copied from gtkmm.
      * docs/pyglom_reference/Makefile.am: A silly little initial attempt to
          have generated html for the glom python module, using pydoc.
      273b80f5
  5. 15 Apr, 2010 2 commits
    • Murray Cumming's avatar
      Python field calculation: Fix a crash. · 2c15d6b2
      Murray Cumming authored
      	* glom/libglom/python_embed/pygdavalue_conversions.cc:
      	glom_pygda_value_as_boost_pyobject(): Add a PyDateTimeAPI call, as already
      	done in glom_pygda_value_from_pyobject(), to prevent a crash (and valgrind
      	warning about 0 dereference) when using this (silly, wrong) field calculation,
      	though I can't reproduce it in a unit test:
      	import datetime
        return (datetime.date.today() - record["date_of_birth"]).days / 365
      2c15d6b2
    • Murray Cumming's avatar
      Python module: Improve API documentation. · 78f73328
      Murray Cumming authored
      * glom/python_embed/python_module/py_glom_module.cc: Added some options and
      text for docstrings, to improve the pydoc -w output.
      78f73328
  6. 14 Apr, 2010 5 commits
  7. 13 Apr, 2010 1 commit
    • Murray Cumming's avatar
      Remove useless translatable strings. · ce234500
      Murray Cumming authored
      	* glom/glom_developer.glade: Remove placeholder text from labels that will
      	actually have their text set at runtime, so there's need actual need to have
      	it in the glade file. They were even marked as translatable.
      	Bug #615656 (Gianluca Ferri)
      ce234500
  8. 12 Apr, 2010 8 commits
    • Murray Cumming's avatar
      Python calculations and scripts: Fix regression in use of date and time fields. · 05669fb9
      Murray Cumming authored
      * glom/libglom/python_embed/py_glom_record.[h|cc]:
      Change PyGlomRecord_SetFields() to a member set_fields() method, and making
      more of the class private, finishing our conversion to boost::python.
      * glom/libglom/python_embed/py_glom_related.[h|cc]:
      Change PyGlomRelated_SetRelationships() to a set_relationships methods.
      * glom/libglom/python_embed/py_glom_relatedrecord.[h|cc]:
      Changed PyGlomRelatedRecord_SetRelationship() to a set_relationship() method.
      
      * glom/python_embed/glom_python.cc: glom_pygda_value_from_pyobject():
        Handle date, time, timestamp, geometric point values, whose code had been
        commented out since the port to boost::python.
      This fixes the test added in the previous commit, so glom calculations and
      scripts can again (it broke in unstable Glom 1.13) use date and time field
      values from the record.
      05669fb9
    • Murray Cumming's avatar
      Added test showing problem with date fields in python calculations. · 4d472d1a
      Murray Cumming authored
      * tests/test_python_execute_func_date.cc: Added a test of dates as input
      values for record fields. This currently fails with this error from python,
      so I need to fix it in Glom:
      AttributeError: 'NoneType' object has no attribute 'year'
      4d472d1a
    • Daniel Elstner's avatar
      Further clean up AX_BOOST_PYTHON_MURRAYC · 1384e898
      Daniel Elstner authored
      * macros/ax_boost_python_murrayc.m4: Simplify the logic of the checks
      and clean up the Bourne shell code.  Also, abort with a fatal error
      if the boost::python headers or library could not be found.
      1384e898
    • Andre Klapper's avatar
      fa4e81a6
    • Murray Cumming's avatar
      Fix glade loading. · 395a2420
      Murray Cumming authored
      * glom/glade_utils.h: get_glade_widget_derived_with_warning(): Fix silly
      but fatal typo.
      395a2420
    • Murray Cumming's avatar
      Simplify setting of the icon for windows. · 49221aeb
      Murray Cumming authored
      * glom/glade_utils.h: get_glade_widget_derived_with_warning():
      Call set_icon_name() on windows.
      * Several *.cc files: Don't bother calling set_icon_name() after calling
      get_glade_widget_derived_with_warning().
      49221aeb
    • Murray Cumming's avatar
      Slight AX_BOOST_PYTHON_MURRAYC() cleanup. · 1ece63f5
      Murray Cumming authored
      * macros/ax_boost_python_murrayc.m4: Add necessary quotes, avoid ==,
          and use AC_LANG_PUSH/AC_LANG_POP instead of deprecated
          AC_LANG_SAVE/AC_LANG_CPLUSPLUS/AC_LANG_RESTORE. Noticed by Daniel Elstner,
          though we don't know if this solves any known problems yet.
      1ece63f5
    • Murray Cumming's avatar
      Provide context for translations. · 7555d447
      Murray Cumming authored
      	* glom/application.cc:
      	* glom/frame_glom.cc:
      	* glom/mode_design/users/dialog_users_list.cc: Use the new (in glib 2.16)
          C_() macro to provide context for bare uses of "User" and "Developer",
          providing some explanation and allowing translators to use translate them
          differently, as may be required by some languages.
          Fixes bug #606931 (Urmas, André Klapper)
      7555d447
  9. 11 Apr, 2010 2 commits
  10. 10 Apr, 2010 10 commits
  11. 09 Apr, 2010 6 commits
    • Mario Blättermann's avatar
      Updated German translation · 22a33e70
      Mario Blättermann authored
      22a33e70
    • Daniel Borgmann's avatar
      Update NEWS file. · 22a8b369
      Daniel Borgmann authored
      * NEWS: Add entry.
      22a8b369
    • Daniel Borgmann's avatar
      Clean up Add Related Table dialog. · 6c56307e
      Daniel Borgmann authored
      * glom/glom_developer.glade: (dialog_add_related_table) Remove frame,
      fix spacings, align form elements in table.
      * glom/mode_design/dialog_add_related_table.cc: Add window icon.
      6c56307e
    • Daniel Borgmann's avatar
      Fix changelog. · a03b52f4
      Daniel Borgmann authored
      a03b52f4
    • Daniel Borgmann's avatar
      Update translation dialogs. · a4df2da3
      Daniel Borgmann authored
      * glom/application.cc:
      * glom/glom_developer.glade:
      * glom/mode_design/script_library/dialog_script_library.cc:
      * glom/mode_design/translation/window_translations.cc:
      * glom/mode_design/users/dialog_groups_list.cc:
      Translation dialog updates, set missing window icons.
      a4df2da3
    • Daniel Borgmann's avatar
      Update dialogs. · 2ab8443b
      Daniel Borgmann authored
      * glom/frame_glom.cc: Set window icons.
      * glom/glom_developer.glade: Update user dialogs.
      * glom/mode_design/layout/dialog_layout.cc: Set window icons.
      * glom/mode_design/users/dialog_groups_list.cc: Set window icons.
      2ab8443b