[ckan-changes] [okfn/ckan] 331de3: example_itemplatehelpers use a function not a meth...

GitHub noreply at github.com
Fri Feb 22 14:32:57 UTC 2013


  Branch: refs/heads/example_itemplatehelpers_without_tests
  Home:   https://github.com/okfn/ckan
  Commit: 331de36c59c11c0179282345a134e62ae609d1ad
      https://github.com/okfn/ckan/commit/331de36c59c11c0179282345a134e62ae609d1ad
  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.





More information about the ckan-changes mailing list