[ckan-changes] [okfn/ckan] 5ceee2: [xs] spelling

GitHub noreply at github.com
Thu Apr 19 15:26:03 UTC 2012


  Branch: refs/heads/master
  Home:   https://github.com/okfn/ckan
  Commit: 5ceee26d8cb0b7c6df390d09f978b0acfa6275e5
      https://github.com/okfn/ckan/commit/5ceee26d8cb0b7c6df390d09f978b0acfa6275e5
  Author: Toby <toby.junk at gmail.com>
  Date:   2012-04-19 (Thu, 19 Apr 2012)

  Changed paths:
    M ckan/plugins/toolkit.py

  Log Message:
  -----------
  [xs] spelling


diff --git a/ckan/plugins/toolkit.py b/ckan/plugins/toolkit.py
index 27e0fd0..de72479 100644
--- a/ckan/plugins/toolkit.py
+++ b/ckan/plugins/toolkit.py
@@ -1,7 +1,7 @@
 ## This file is intended to make functions/objects consistently
 ## available to plugins whilst giving developers the ability move code
 ## around or change underlying frameworks etc. It should not be used
-## internaly within ckan only by extensions. Functions should only be
+## internally within ckan only by extensions. Functions should only be
 ## removed from this file after reasonable depreciation notice has
 ## been given.
 


================================================================
  Commit: cf1211145f7cc1896f4bae49c37936dccce112a9
      https://github.com/okfn/ckan/commit/cf1211145f7cc1896f4bae49c37936dccce112a9
  Author: Toby <toby.junk at gmail.com>
  Date:   2012-04-19 (Thu, 19 Apr 2012)

  Changed paths:
    M ckan/plugins/toolkit.py

  Log Message:
  -----------
  plugin.toolkit NotFound -> ActionNotFound


diff --git a/ckan/plugins/toolkit.py b/ckan/plugins/toolkit.py
index de72479..e635c43 100644
--- a/ckan/plugins/toolkit.py
+++ b/ckan/plugins/toolkit.py
@@ -34,7 +34,7 @@
     'literal',              # stop tags in a string being escaped
     'get_action',           # get logic action function
     'check_access',         # check logic function authorisation
-    'NotFound',             # action not found exception
+    'ActionNotFound',       # action not found exception (ckan.logic.NotFound)
     'NotAuthorized',        # action not authorized exception
     'ValidationError',      # model update validation error
     'CkanCommand',          # class for providing cli interfaces
@@ -59,7 +59,7 @@
 
 get_action = logic.get_action
 check_access = logic.check_access
-NotFound = logic.NotFound
+ActionNotFound = logic.NotFound  ## Name change intentional
 NotAuthorized = logic.NotAuthorized
 ValidationError = logic.ValidationError
 


================================================================
Compare: https://github.com/okfn/ckan/compare/413f680...cf12111


More information about the ckan-changes mailing list