[ckan-changes] [ckan/ckan] 457474: [#4031] Add names to organization routes so they c...

GitHub noreply at github.com
Thu Feb 22 13:39:28 UTC 2018


  Branch: refs/heads/4031-improve-igroupform-support
  Home:   https://github.com/ckan/ckan
  Commit: 45747407ad680a74921de654202dee3e95ad4d46
      https://github.com/ckan/ckan/commit/45747407ad680a74921de654202dee3e95ad4d46
  Author: amercader <amercadero at gmail.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M ckan/config/routing.py

  Log Message:
  -----------
  [#4031] Add names to organization routes so they can be referenced in templates


  Commit: e8f26b461c5e11bc36d2c233093f0c9f0d5cb801
      https://github.com/ckan/ckan/commit/e8f26b461c5e11bc36d2c233093f0c9f0d5cb801
  Author: amercader <amercadero at gmail.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M ckan/controllers/group.py

  Log Message:
  -----------
  [#4031] Pass group_type to plugins so they can choose what to do

For instance when rendering the form for a new group/org there is not
way of telling if it's a group, org or custom type. The existing method
for the plugin interface just accepts context and data_dict, so to
maintain backwards compatibility I'm adding the group_type to
data_dict['type'], which is consistent with what they would get on an
update operation.


  Commit: e397e4c0b5eba4e66812ed31aedaaae194f7eb82
      https://github.com/ckan/ckan/commit/e397e4c0b5eba4e66812ed31aedaaae194f7eb82
  Author: amercader <amercadero at gmail.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M ckan/controllers/organization.py

  Log Message:
  -----------
  [#4031] Remove _guess_group_type methods from org controller

It had "organization" hardcoded so it prevented custom organization
types to work properly. The parent implementation in the group
controller should work fine for orgs as well as it just uses the URL.


  Commit: 534b7b176d0eaca2f62f7aeae4bf983082b4f7fa
      https://github.com/ckan/ckan/commit/534b7b176d0eaca2f62f7aeae4bf983082b4f7fa
  Author: amercader <amercadero at gmail.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M ckan/controllers/group.py

  Log Message:
  -----------
  [#4031] Remove methods that prevented custom types URLs

These two methods had hardcoded calls to the group or org routes defined
in core, so custom types were ignored. Replace them with calls to
`redirect_to` or `url_for` that take the group type into account.


  Commit: a54c906c4dba0361160b74d6ff5e0e7d7580bfbc
      https://github.com/ckan/ckan/commit/a54c906c4dba0361160b74d6ff5e0e7d7580bfbc
  Author: amercader <amercadero at gmail.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M ckan/controllers/group.py

  Log Message:
  -----------
  [#4031] Improve search in group read and bulk page


  Commit: 0b8dc27ed53f30db49c2fcc9729c878b3ab41e8d
      https://github.com/ckan/ckan/commit/0b8dc27ed53f30db49c2fcc9729c878b3ab41e8d
  Author: amercader <amercadero at gmail.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M ckan/templates/group/edit_base.html
    M ckan/templates/group/index.html
    M ckan/templates/group/member_new.html
    M ckan/templates/group/members.html
    M ckan/templates/group/read_base.html
    M ckan/templates/organization/edit_base.html
    M ckan/templates/organization/index.html
    M ckan/templates/organization/member_new.html
    M ckan/templates/organization/members.html
    M ckan/templates/organization/read_base.html
    M ckan/templates/snippets/organization.html

  Log Message:
  -----------
  [#4031] Use group type when building URLs in templates

TODO bootstrap2 ?


  Commit: 38cdf6291e707e0ddbfcd952379b87703e35cf08
      https://github.com/ckan/ckan/commit/38cdf6291e707e0ddbfcd952379b87703e35cf08
  Author: amercader <amercadero at gmail.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M ckan/lib/plugins.py

  Log Message:
  -----------
  [#4031] Add missing routes in group plugins


  Commit: 7ac5546eeceb70d1f53b02d87a346442ae01b385
      https://github.com/ckan/ckan/commit/7ac5546eeceb70d1f53b02d87a346442ae01b385
  Author: amercader <amercadero at gmail.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M ckan/lib/plugins.py

  Log Message:
  -----------
  [#4031] Allow registering of fallback org plugins

Right now if an organization plugin implementing `IGroupForm` set
is_fallback to True, the plugin was added as the default *group* plugin,
not the organization one.


Compare: https://github.com/ckan/ckan/compare/45747407ad68^...7ac5546eeceb


More information about the ckan-changes mailing list