[ckan-changes] [ckan/ckan] 7dcb2f: [#1500] Mock pylons context object on paster comma...

GitHub noreply at github.com
Fri Mar 7 00:31:32 UTC 2014

  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: 7dcb2f14f98b85f7039ce17aa965ff8d61e99756
  Author: amercader <amercadero at gmail.com>
  Date:   2014-02-28 (Fri, 28 Feb 2014)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  [#1500] Mock pylons context object on paster commands

When calling a paster command, we create and register a Pylons context
object (c), and add to site user to it (c.user and c.auth_user_object).
This ensures that the auth will work in exactly the same way as in a web
request. Otherwise you can find problems like the harvest and DataPusher

We already did a similar thing registering a MockTranslator for the

  Commit: fdfc4cffa1812da2ce853c294c3c2069074a9e82
  Author: kindly <kindly at gmail.com>
  Date:   2014-03-06 (Thu, 06 Mar 2014)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  Merge pull request #1500 from ckan/1500-mock-web-request-on-paster-commands

datapusher and harvester collision

Compare: https://github.com/ckan/ckan/compare/7588f45183f6...fdfc4cffa181

More information about the ckan-changes mailing list