[ckan-changes] [ckan/ckan] d5dc61: [#2873] Use `resource.url` as raw_resource_url

GitHub noreply at github.com
Tue Mar 29 11:38:48 UTC 2016


  Branch: refs/heads/release-v2.5.2
  Home:   https://github.com/ckan/ckan
  Commit: d5dc61b8ccf100e203f4aa1bdd267446cee21ef7
      https://github.com/ckan/ckan/commit/d5dc61b8ccf100e203f4aa1bdd267446cee21ef7
  Author: Motornyuk Sergey <tonnydexter at gmail.com>
  Date:   2016-03-29 (Tue, 29 Mar 2016)

  Changed paths:
    M ckan/templates/package/snippets/resource_view.html

  Log Message:
  -----------
  [#2873] Use `resource.url` as raw_resource_url

`resource_view` template uses raw_resouce_url in order to create
download link if resource can't be displayed, but this variable is not
passed into snippet. To make that simpler, use resource.url property
for download button.


  Commit: 6fbe24e4adc56e6c322fe96f3e78429eab51eacb
      https://github.com/ckan/ckan/commit/6fbe24e4adc56e6c322fe96f3e78429eab51eacb
  Author: Florian Brucker <florian.brucker at mb.karlsruhe.de>
  Date:   2016-03-29 (Tue, 29 Mar 2016)

  Changed paths:
    M ckan/lib/plugins.py

  Log Message:
  -----------
  Fix #2895: Problems with translations in plugins (part 1)

`ckan.lib.plugin.DefaultTranslation` relies on the extension package's
`__file__` attribute which is not available for namespace packages.

The fix is to use `ckanext.my_extension.plugin.__file__` instead. Note
that the existing code already assumes the existance of the `plugin`
module.


  Commit: 39a890119e2d7863d7dff73a5925c00efa9b46c1
      https://github.com/ckan/ckan/commit/39a890119e2d7863d7dff73a5925c00efa9b46c1
  Author: Florian Brucker <florian.brucker at mb.karlsruhe.de>
  Date:   2016-03-29 (Tue, 29 Mar 2016)

  Changed paths:
    M ckan/pastertemplates/template/MANIFEST.in_tmpl

  Log Message:
  -----------
  Fix #2895: Problems with translations in plugins (part 2)

In extensions created using the current templates `*.mo` files (compiled
translations) are not picked up during packaging.

The fix is to include these files via the `MANIFEST.in` file and to
update the template accordingly.


Compare: https://github.com/ckan/ckan/compare/440a6d2f9939...39a890119e2d


More information about the ckan-changes mailing list