[ckan-changes] [ckan/ckan] 444fe1: Add global properties `controller` and `action`

GitHub noreply at github.com
Mon Jul 23 15:17:54 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: 444fe18c8d8fcaf05ae822a1a56b067324c69750
      https://github.com/ckan/ckan/commit/444fe18c8d8fcaf05ae822a1a56b067324c69750
  Author: Sergey Motornyuk <sergey.motornyuk at linkdigital.com.au>
  Date:   2018-07-03 (Tue, 03 Jul 2018)

  Changed paths:
    M ckan/config/middleware/flask_app.py
    M ckan/views/__init__.py

  Log Message:
  -----------
  Add global properties `controller` and `action`

There are a bunch of extensions that relies on this props. This PR
is attempting to add them inside `before_each_request` hook. If
url.endpoint contains dot, than part before dot will be considered
as controller and part after the dot - as action. otherwise(routes
without dot, like test /hello route), view name is used for both,
controller and action name


  Commit: 92bc82900d65499aaa1a5880a863f497b5ade0d8
      https://github.com/ckan/ckan/commit/92bc82900d65499aaa1a5880a863f497b5ade0d8
  Author: Sergey Motornyuk <sergey.motornyuk at linkdigital.com.au>
  Date:   2018-07-06 (Fri, 06 Jul 2018)

  Changed paths:
    M CHANGELOG.rst
    M ckan/views/__init__.py

  Log Message:
  -----------
  update changelog. follow coding standards


  Commit: 3f335705243bedf19e7b87bf9e2fe9a8f2abace6
      https://github.com/ckan/ckan/commit/3f335705243bedf19e7b87bf9e2fe9a8f2abace6
  Author: Sergey Motornyuk <sergey.motornyuk at linkdigital.com.au>
  Date:   2018-07-06 (Fri, 06 Jul 2018)

  Changed paths:
    M CHANGELOG.rst
    M ckan/views/__init__.py

  Log Message:
  -----------
  ... i hate coding standards


  Commit: 06ffcbe6d651df3e8cc8506ce2ebaa88543677d2
      https://github.com/ckan/ckan/commit/06ffcbe6d651df3e8cc8506ce2ebaa88543677d2
  Author: Sergey <tonnydexter at gmail.com>
  Date:   2018-07-10 (Tue, 10 Jul 2018)

  Changed paths:
    M CHANGELOG.rst

  Log Message:
  -----------
  Update CHANGELOG.rst


  Commit: 6880ef34e2d97dc0f1f0ef48443b4be100233979
      https://github.com/ckan/ckan/commit/6880ef34e2d97dc0f1f0ef48443b4be100233979
  Author: Your Name <you at example.com>
  Date:   2018-07-22 (Sun, 22 Jul 2018)

  Changed paths:
    M CHANGELOG.rst
    M ckan/plugins/toolkit.py

  Log Message:
  -----------
  add toolkit.get_endpoint


  Commit: 1daea2a79ad24a1be6d91f5a98607b03025936ac
      https://github.com/ckan/ckan/commit/1daea2a79ad24a1be6d91f5a98607b03025936ac
  Author: Konstantin Sivakov <konstantin.sivakov at keitaro.com>
  Date:   2018-07-23 (Mon, 23 Jul 2018)

  Changed paths:
    M CHANGELOG.rst
    M ckan/config/middleware/flask_app.py
    M ckan/plugins/toolkit.py
    M ckan/views/__init__.py

  Log Message:
  -----------
  Merge pull request #4319 from smotornyuk/flask-views-global-controller-and-action

[#4310] Add global properties `controller` and `action`


Compare: https://github.com/ckan/ckan/compare/fd124276967a...1daea2a79ad2
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the ckan-changes mailing list