[ckan-changes] [okfn/ckan] 242ea9: Add an example ITemplateHelpers extension

GitHub noreply at github.com
Fri Feb 22 16:12:44 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/okfn/ckan
  Commit: 242ea9af31fe0e4a838e7e07ba9d3483aa80d4bf
      https://github.com/okfn/ckan/commit/242ea9af31fe0e4a838e7e07ba9d3483aa80d4bf
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-02-22 (Fri, 22 Feb 2013)

  Changed paths:
    A ckanext/example_itemplatehelpers/__init__.py
    A ckanext/example_itemplatehelpers/plugin.py
    A ckanext/example_itemplatehelpers/templates/home/index.html
    M setup.py

  Log Message:
  -----------
  Add an example ITemplateHelpers extension


  Commit: 33e967277642266ec93192a0902eba8963f1d6d0
      https://github.com/okfn/ckan/commit/33e967277642266ec93192a0902eba8963f1d6d0
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-02-22 (Fri, 22 Feb 2013)

  Changed paths:
    M ckan/plugins/interfaces.py

  Log Message:
  -----------
  Improve the ITemplateHelpers docstrings

Just make the docstrings a bit clearer and more explicit, and reference
the new example_itemplatehelpers extension.


  Commit: 7bca1480fa72dc3f982e74d248a1eea2e659a80e
      https://github.com/okfn/ckan/commit/7bca1480fa72dc3f982e74d248a1eea2e659a80e
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-02-22 (Fri, 22 Feb 2013)

  Changed paths:
    M ckanext/example_itemplatehelpers/plugin.py

  Log Message:
  -----------
  example_itemplatehelpers use a function not a method

It's not a good idea for template helper functions to be class methods,
because self is not thread-safe.


  Commit: aee8d37d811bed46c50c140d8c6fb2f9f9ad9311
      https://github.com/okfn/ckan/commit/aee8d37d811bed46c50c140d8c6fb2f9f9ad9311
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-02-22 (Fri, 22 Feb 2013)

  Changed paths:
    M ckan/plugins/interfaces.py

  Log Message:
  -----------
  Add a couple of details to ITemplateHelpers docs


Compare: https://github.com/okfn/ckan/compare/9c48a59b6e31...aee8d37d811b


More information about the ckan-changes mailing list