[ckan-changes] [ckan/ckan] 34f3f1: [#3194] Consolidate a single redirect function
GitHub
noreply at github.com
Fri Sep 16 14:03:41 UTC 2016
Branch: refs/heads/master
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: fb47fe83942147ec14415e512794716d2f071c65
https://github.com/ckan/ckan/commit/fb47fe83942147ec14415e512794716d2f071c65
Author: amercader <amercadero at gmail.com>
Date: 2016-09-15 (Thu, 15 Sep 2016)
Changed paths:
M CHANGELOG.rst
M ckan/__init__.py
M ckan/config/deployment.ini_tmpl
M ckan/config/middleware/flask_app.py
M ckan/config/routing.py
M ckan/controllers/feed.py
M ckan/controllers/group.py
M ckan/controllers/package.py
M ckan/i18n/ar/LC_MESSAGES/ckan.mo
M ckan/i18n/bg/LC_MESSAGES/ckan.mo
M ckan/i18n/ca/LC_MESSAGES/ckan.mo
M ckan/i18n/cs_CZ/LC_MESSAGES/ckan.mo
M ckan/i18n/da_DK/LC_MESSAGES/ckan.mo
M ckan/i18n/de/LC_MESSAGES/ckan.mo
M ckan/i18n/el/LC_MESSAGES/ckan.mo
M ckan/i18n/en_AU/LC_MESSAGES/ckan.mo
M ckan/i18n/en_GB/LC_MESSAGES/ckan.mo
M ckan/i18n/es/LC_MESSAGES/ckan.mo
M ckan/i18n/es_AR/LC_MESSAGES/ckan.mo
M ckan/i18n/fa_IR/LC_MESSAGES/ckan.mo
M ckan/i18n/fi/LC_MESSAGES/ckan.mo
M ckan/i18n/fi/LC_MESSAGES/ckan.po
M ckan/i18n/fr/LC_MESSAGES/ckan.mo
M ckan/i18n/he/LC_MESSAGES/ckan.mo
M ckan/i18n/hr/LC_MESSAGES/ckan.mo
M ckan/i18n/hu/LC_MESSAGES/ckan.mo
M ckan/i18n/id/LC_MESSAGES/ckan.mo
M ckan/i18n/is/LC_MESSAGES/ckan.mo
M ckan/i18n/is/LC_MESSAGES/ckan.po
M ckan/i18n/it/LC_MESSAGES/ckan.mo
M ckan/i18n/ja/LC_MESSAGES/ckan.mo
M ckan/i18n/km/LC_MESSAGES/ckan.mo
M ckan/i18n/ko_KR/LC_MESSAGES/ckan.mo
M ckan/i18n/lt/LC_MESSAGES/ckan.mo
M ckan/i18n/lv/LC_MESSAGES/ckan.mo
M ckan/i18n/mn_MN/LC_MESSAGES/ckan.mo
M ckan/i18n/ne/LC_MESSAGES/ckan.po
M ckan/i18n/nl/LC_MESSAGES/ckan.mo
M ckan/i18n/nl/LC_MESSAGES/ckan.po
M ckan/i18n/no/LC_MESSAGES/ckan.mo
M ckan/i18n/no/LC_MESSAGES/ckan.po
M ckan/i18n/pl/LC_MESSAGES/ckan.mo
M ckan/i18n/pt_BR/LC_MESSAGES/ckan.mo
M ckan/i18n/pt_PT/LC_MESSAGES/ckan.mo
M ckan/i18n/pt_PT/LC_MESSAGES/ckan.po
M ckan/i18n/ro/LC_MESSAGES/ckan.mo
M ckan/i18n/ru/LC_MESSAGES/ckan.mo
M ckan/i18n/sk/LC_MESSAGES/ckan.mo
M ckan/i18n/sl/LC_MESSAGES/ckan.mo
M ckan/i18n/sq/LC_MESSAGES/ckan.mo
M ckan/i18n/sr/LC_MESSAGES/ckan.mo
M ckan/i18n/sr_Latn/LC_MESSAGES/ckan.mo
M ckan/i18n/sv/LC_MESSAGES/ckan.mo
M ckan/i18n/th/LC_MESSAGES/ckan.mo
A ckan/i18n/tl/LC_MESSAGES/ckan.mo
A ckan/i18n/tl/LC_MESSAGES/ckan.po
M ckan/i18n/tr/LC_MESSAGES/ckan.mo
M ckan/i18n/uk_UA/LC_MESSAGES/ckan.mo
M ckan/i18n/uk_UA/LC_MESSAGES/ckan.po
M ckan/i18n/vi/LC_MESSAGES/ckan.mo
M ckan/i18n/zh_CN/LC_MESSAGES/ckan.mo
M ckan/i18n/zh_CN/LC_MESSAGES/ckan.po
M ckan/i18n/zh_TW/LC_MESSAGES/ckan.mo
M ckan/lib/cli.py
M ckan/lib/dictization/model_dictize.py
M ckan/lib/mailer.py
M ckan/lib/render.py
M ckan/lib/search/__init__.py
R ckan/lib/search/sql.py
M ckan/logic/action/get.py
M ckan/logic/action/update.py
M ckan/public/base/css/main.css
M ckan/public/base/less/module.less
M ckan/public/base/vendor/moment-with-locales.js
M ckan/tests/controllers/test_feed.py
M ckan/tests/controllers/test_package.py
R ckan/tests/legacy/lib/test_simple_search.py
M ckan/tests/lib/test_mailer.py
M ckan/tests/logic/action/test_get.py
M ckan/tests/logic/action/test_update.py
M ckanext/datapusher/cli.py
M ckanext/example_theme/custom_config_setting/plugin.py
M ckanext/example_theme/custom_emails/tests.py
M ckanext/reclineview/plugin.py
M ckanext/reclineview/theme/public/css/recline.css
M ckanext/reclineview/theme/public/recline_view.js
M ckanext/reclineview/theme/public/resource.config
R ckanext/reclineview/theme/public/vendor/bootstrap/2.3.2/bootstrap.js
R ckanext/reclineview/theme/public/vendor/bootstrap/2.3.2/css/bootstrap-responsive.css
R ckanext/reclineview/theme/public/vendor/bootstrap/2.3.2/css/bootstrap.css
R ckanext/reclineview/theme/public/vendor/bootstrap/2.3.2/img/glyphicons-halflings-white.png
R ckanext/reclineview/theme/public/vendor/bootstrap/2.3.2/img/glyphicons-halflings.png
A ckanext/reclineview/theme/public/vendor/bootstrap/3.2.0/css/bootstrap-theme.css
A ckanext/reclineview/theme/public/vendor/bootstrap/3.2.0/css/bootstrap.css
A ckanext/reclineview/theme/public/vendor/bootstrap/3.2.0/fonts/glyphicons-halflings-regular.eot
A ckanext/reclineview/theme/public/vendor/bootstrap/3.2.0/fonts/glyphicons-halflings-regular.svg
A ckanext/reclineview/theme/public/vendor/bootstrap/3.2.0/fonts/glyphicons-halflings-regular.ttf
A ckanext/reclineview/theme/public/vendor/bootstrap/3.2.0/fonts/glyphicons-halflings-regular.woff
A ckanext/reclineview/theme/public/vendor/bootstrap/3.2.0/js/bootstrap.js
A ckanext/reclineview/theme/public/vendor/leaflet.markercluster/leaflet.markercluster-src.js
A ckanext/reclineview/theme/public/vendor/recline/flot.css
A ckanext/reclineview/theme/public/vendor/recline/map.css
M ckanext/reclineview/theme/public/vendor/recline/recline.js
A ckanext/reclineview/theme/public/vendor/recline/slickgrid.css
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/MIT-LICENSE.txt
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/README.txt
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/images/calendar.gif
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/images/sort-asc.gif
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/images/sort-desc.gif
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/jquery-ui-1.8.16.custom.js
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/jquery-ui-1.8.16.custom.min.js
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/jquery.event.drag-2.0.js
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/jquery.event.drag-2.0.min.js
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/plugins/slick.rowmovemanager.js
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/plugins/slick.rowselectionmodel.js
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/slick.grid.css
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/slick.grid.js
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/slick.grid.min.css
R ckanext/reclineview/theme/public/vendor/slickgrid/2.0.1/slick.grid.min.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/MIT-LICENSE.txt
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/README.md
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/controls/slick.columnpicker.css
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/controls/slick.columnpicker.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/controls/slick.pager.css
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/controls/slick.pager.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/images/ui-icons_222222_256x240.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/images/ui-icons_2e83ff_256x240.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/images/ui-icons_454545_256x240.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/images/ui-icons_888888_256x240.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/images/ui-icons_cd0a0a_256x240.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/css/smoothness/jquery-ui-1.8.16.custom.css
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/actions.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/ajax-loader-small.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/arrow_redo.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/arrow_right_peppermint.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/arrow_right_spearmint.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/arrow_undo.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/bullet_blue.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/bullet_star.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/bullet_toggle_minus.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/bullet_toggle_plus.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/calendar.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/collapse.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/comment_yellow.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/down.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/drag-handle.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/editor-helper-bg.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/expand.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/header-bg.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/header-columns-bg.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/header-columns-over-bg.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/help.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/info.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/listview.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/pencil.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/row-over-bg.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/sort-asc.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/sort-asc.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/sort-desc.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/sort-desc.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/stripes.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/tag_red.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/tick.png
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/user_identity.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/images/user_identity_plus.gif
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/jquery-1.7.min.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/jquery-ui-1.8.16.custom.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/jquery.event.drag-2.2.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/jquery.event.drop-2.2.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/plugins/slick.autotooltips.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/plugins/slick.cellcopymanager.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/plugins/slick.cellrangedecorator.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/plugins/slick.cellrangeselector.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/plugins/slick.cellselectionmodel.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/plugins/slick.checkboxselectcolumn.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/plugins/slick.headerbuttons.css
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/plugins/slick.headerbuttons.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/plugins/slick.headermenu.css
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/plugins/slick.headermenu.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/plugins/slick.rowmovemanager.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/plugins/slick.rowselectionmodel.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/slick-default-theme.css
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/slick.core.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/slick.dataview.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/slick.editors.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/slick.formatters.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/slick.grid.css
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/slick.grid.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/slick.groupitemmetadataprovider.js
A ckanext/reclineview/theme/public/vendor/slickgrid/2.2/slick.remotemodel.js
A ckanext/reclineview/theme/public/vendor/timeline/LICENSE
A ckanext/reclineview/theme/public/vendor/timeline/README
M ckanext/reclineview/theme/templates/recline_view.html
M doc/contributing/architecture.rst
M doc/contributing/test.rst
A doc/images/architecture.png
A doc/images/architecture.svg
M doc/maintaining/configuration.rst
M doc/maintaining/data-viewer.rst
M doc/maintaining/installing/install-from-package.rst
Log Message:
-----------
Merge branch 'master' into 3194-fix-redirects
Commit: b7e2971c3549a6df831f5e761ce9831030d74363
https://github.com/ckan/ckan/commit/b7e2971c3549a6df831f5e761ce9831030d74363
Author: Ian Ward <ian at excess.org>
Date: 2016-09-16 (Fri, 16 Sep 2016)
Changed paths:
M ckan/tests/helpers.py
Log Message:
-----------
[#3194] Setting HTTP_HOST shouldn't be required
Commit: d1a78b98285614c93b59a9a8bc8a0dd027a612c5
https://github.com/ckan/ckan/commit/d1a78b98285614c93b59a9a8bc8a0dd027a612c5
Author: Ian Ward <ian at excess.org>
Date: 2016-09-16 (Fri, 16 Sep 2016)
Changed paths:
M ckan/common.py
M ckan/controllers/package.py
M ckan/controllers/util.py
M ckan/lib/base.py
M ckan/lib/helpers.py
M ckan/tests/controllers/test_tags.py
M ckan/tests/controllers/test_util.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 pull request #3194 from ckan/3194-fix-redirects
Fix redirects in tests to use the host on `ckan.site_url`
Compare: https://github.com/ckan/ckan/compare/883b46ea7a89...d1a78b982856
More information about the ckan-changes
mailing list