[ckan-changes] [okfn/ckan] 6d257f: [#2313] Log warning when c.facets is accessed.

GitHub noreply at github.com
Thu Jul 12 13:14:23 UTC 2012


  Branch: refs/heads/2313-deprecate-old-facet-data-structures-and-related-functions
  Home:   https://github.com/okfn/ckan
  Commit: 6d257fc5298e4e3d5bf56c6e16fb6c9d7ee6eed1
      https://github.com/okfn/ckan/commit/6d257fc5298e4e3d5bf56c6e16fb6c9d7ee6eed1
  Author: Ian Murray <ian.murray at okfn.org>
  Date:   2012-07-12 (Thu, 12 Jul 2012)

  Changed paths:
    M ckan/controllers/group.py
    M ckan/controllers/home.py
    M ckan/controllers/package.py
    M ckan/lib/maintain.py

  Log Message:
  -----------
  [#2313] Log warning when c.facets is accessed.

Using a new `deprecate_context_item` function in `ckan.lib.maintain`, which
intercepts access to a named attribute on the context by attaching a property
to the underlying storage of the gloal context object.





More information about the ckan-changes mailing list