[ckan-changes] [okfn/ckan] ed221a: [#1635] Remove pylons.g from lib/mailer.py

GitHub noreply at github.com
Mon Dec 3 16:30:45 UTC 2012


  Branch: refs/heads/1635-feature-email-notifications-for-activity-streams
  Home:   https://github.com/okfn/ckan
  Commit: ed221a2e52d3ee317a0f0e3b955c7bfbffa11286
      https://github.com/okfn/ckan/commit/ed221a2e52d3ee317a0f0e3b955c7bfbffa11286
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-03 (Mon, 03 Dec 2012)

  Changed paths:
    M ckan/lib/mailer.py

  Log Message:
  -----------
  [#1635] Remove pylons.g from lib/mailer.py

Don't use pylons.g in ckan/lib/mailer.py, use pylons.config instead.
This allows mailer.py to be used from outside of a Pylons request thread
(where pylons.g has not been registered for the thread), e.g. from a
paster command.


  Commit: 0d9e6274991393c28e3bbe9b930a0551dd627ae7
      https://github.com/okfn/ckan/commit/0d9e6274991393c28e3bbe9b930a0551dd627ae7
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-03 (Mon, 03 Dec 2012)

  Changed paths:
    M ckan/lib/cli.py
    M ckan/lib/email_notifications.py
    M setup.py

  Log Message:
  -----------
  - Add EmailNotificationsCommand in cli.py and setup.py

- Move an import in email_notifications.py into a function. This seems to be
  necessary otherwise the paster command crashes.


  Commit: 100bf3166fae97154887126417a6742185aaa7bd
      https://github.com/okfn/ckan/commit/100bf3166fae97154887126417a6742185aaa7bd
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-03 (Mon, 03 Dec 2012)

  Changed paths:
    M ckan/lib/email_notifications.py

  Log Message:
  -----------
  [#1635] Fix a couple of comments


Compare: https://github.com/okfn/ckan/compare/35cb12bb65bc...100bf3166fae


More information about the ckan-changes mailing list