[ckan-changes] [ckan/ckan] 5cfc6c: Don't use cached values when rendering notes.

GitHub noreply at github.com
Tue Aug 25 20:54:54 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: 5cfc6c6e15cc7eebb26ae13c37874273ae0e4ea9
      https://github.com/ckan/ckan/commit/5cfc6c6e15cc7eebb26ae13c37874273ae0e4ea9
  Author: Tyler Kennedy <tk at tkte.ch>
  Date:   2015-08-24 (Mon, 24 Aug 2015)

  Changed paths:
    M ckan/templates/package/read.html

  Log Message:
  -----------
  Don't use cached values when rendering notes.

Currently, a cached field with the rendered markdown is used in the
package/read template.

This value is set very early in the process (and also results in
rendering markdown when it is not needed).

Since it is set so early, it bypasses all of the hooks designed to allow
these values to be manipulated, such as `before_view`. This breaks
extension on core fields that depend on being able to modify these
fields, like the multi-lingual support extension ckanext-fluent.


  Commit: 0995d4549def866a7caacad8f08bf8e39e1d32dc
      https://github.com/ckan/ckan/commit/0995d4549def866a7caacad8f08bf8e39e1d32dc
  Author: Tyler Kennedy <tk at tkte.ch>
  Date:   2015-08-25 (Tue, 25 Aug 2015)

  Changed paths:
    M ckan/lib/plugins.py

  Log Message:
  -----------
  Remove pkg_notes_formatted completely.


  Commit: e0732b175559212f166f4bcecfa420a20d934ccd
      https://github.com/ckan/ckan/commit/e0732b175559212f166f4bcecfa420a20d934ccd
  Author: Ian Ward <ian at excess.org>
  Date:   2015-08-25 (Tue, 25 Aug 2015)

  Changed paths:
    M ckan/lib/plugins.py
    M ckan/templates/package/read.html

  Log Message:
  -----------
  Merge pull request #2595 from TkTech/dont_skip_hooks

Don't use cached values when rendering notes.


Compare: https://github.com/ckan/ckan/compare/6b82fd475782...e0732b175559


More information about the ckan-changes mailing list