Skip to content

Commit

Permalink
[ckan#2835] toolkit: add StopOnError
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Jan 14, 2016
1 parent 540b9ae commit ed74b50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/plugins/toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class _Toolkit(object):
'NotAuthorized', # action not authorized exception
'UnknownValidator', # validator not found exception
'ValidationError', # model update validation error
'StopOnError', # validation exception to stop further
# validators from being called
'Invalid', # validation invalid exception
'CkanCommand', # class for providing cli interfaces
'DefaultDatasetForm', # base class for IDatasetForm plugins
Expand Down Expand Up @@ -184,6 +186,7 @@ def _initialize(self):
t['ObjectNotFound'] = logic.NotFound # Name change intentional
t['NotAuthorized'] = logic.NotAuthorized
t['ValidationError'] = logic.ValidationError
t['StopOnError'] = dictization_functions.StopOnError
t['UnknownValidator'] = logic.UnknownValidator
t['Invalid'] = logic_validators.Invalid

Expand Down

0 comments on commit ed74b50

Please sign in to comment.