[ckan-changes] [ckan/ckan] 34f3f1: [#3194] Consolidate a single redirect function

GitHub noreply at github.com
Tue Aug 23 12:53:00 UTC 2016


  Branch: refs/heads/3196-common-requests-code
  Home:   https://github.com/ckan/ckan
  Commit: 34f3f18e8893b5fc33047df94c88d4852c9a1f6b
      https://github.com/ckan/ckan/commit/34f3f18e8893b5fc33047df94c88d4852c9a1f6b
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-08 (Mon, 08 Aug 2016)

  Changed paths:
    M ckan/controllers/package.py
    M ckan/controllers/util.py
    M ckan/lib/base.py
    M ckan/lib/helpers.py

  Log Message:
  -----------
  [#3194] Consolidate a single redirect function

Only use helpers.redirect_to (which uses routes.redirect_to), not
pylons.redirect or pylons.redirect_to.

This takes care of lang bits in the url and is the one exposed on the
toolkit.


  Commit: 7a0623c7be0598db3aab7604ca7b1014157cf871
      https://github.com/ckan/ckan/commit/7a0623c7be0598db3aab7604ca7b1014157cf871
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-08 (Mon, 08 Aug 2016)

  Changed paths:
    M ckan/lib/helpers.py
    M ckan/tests/controllers/test_tags.py
    M ckan/tests/controllers/test_util.py

  Log Message:
  -----------
  [#3194] Ensure that relative redirects use the host on ckan.site_url


  Commit: 901af2757f9599a61bf136830d792d556a9b2069
      https://github.com/ckan/ckan/commit/901af2757f9599a61bf136830d792d556a9b2069
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-08 (Mon, 08 Aug 2016)

  Changed paths:
    M ckan/tests/helpers.py
    M ckanext/example_igroupform/tests/test_controllers.py

  Log Message:
  -----------
  [#3194] Set HTTP_HOST to ckan.site_url on submit_and_follow

So redirects use the correct host


  Commit: dae599a211f358855b3f5ecaed7fd30aea164824
      https://github.com/ckan/ckan/commit/dae599a211f358855b3f5ecaed7fd30aea164824
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-08 (Mon, 08 Aug 2016)

  Changed paths:
    M ckan/tests/legacy/functional/test_user.py

  Log Message:
  -----------
  Use own url_for rather than routes'

As we handle the host correctly. This will be done to all tests when the
new url_for work is merged


  Commit: e34f74fb8b5a783320a4ddf2634f462d98017e7f
      https://github.com/ckan/ckan/commit/e34f74fb8b5a783320a4ddf2634f462d98017e7f
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-19 (Fri, 19 Aug 2016)

  Changed paths:
    M ckan/controllers/package.py
    M ckanext/datapusher/plugin.py

  Log Message:
  -----------
  [#3194] Consolidate some further redirect calls


  Commit: d57d8be673f74eb53a8db8c193c57007eee4d0a6
      https://github.com/ckan/ckan/commit/d57d8be673f74eb53a8db8c193c57007eee4d0a6
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-22 (Mon, 22 Aug 2016)

  Changed paths:
    M ckan/common.py

  Log Message:
  -----------
  [#3194] Add is_flask_request function (from #3197)


  Commit: 0884cdcaaf900d465723296cab666ba0f2bd30d2
      https://github.com/ckan/ckan/commit/0884cdcaaf900d465723296cab666ba0f2bd30d2
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-22 (Mon, 22 Aug 2016)

  Changed paths:
    M ckan/lib/helpers.py

  Log Message:
  -----------
  [#3194] Support both Flask and Pylons redirects


  Commit: 9b0be760e64809457c99b622bcef813ce4c20684
      https://github.com/ckan/ckan/commit/9b0be760e64809457c99b622bcef813ce4c20684
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-23 (Tue, 23 Aug 2016)

  Changed paths:
    M ckan/controllers/package.py
    M ckan/controllers/util.py
    M ckan/lib/base.py
    M ckan/tests/helpers.py
    M ckan/tests/legacy/functional/test_user.py
    M ckanext/datapusher/plugin.py
    M ckanext/example_igroupform/tests/test_controllers.py

  Log Message:
  -----------
  Merge branch '3194-fix-redirects' into 3196-common-requests-code


  Commit: a802c130fe2b01478c6dbfcb1ffb29c6e235960b
      https://github.com/ckan/ckan/commit/a802c130fe2b01478c6dbfcb1ffb29c6e235960b
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-23 (Tue, 23 Aug 2016)

  Changed paths:
    M ckan/views/__init__.py

  Log Message:
  -----------
  [#3196] Fix string literals


Compare: https://github.com/ckan/ckan/compare/b13e8aca0df9...a802c130fe2b


More information about the ckan-changes mailing list