Skip to content

Commit

Permalink
Revert "Add before_search_view() to IPackageController interface"
Browse files Browse the repository at this point in the history
This reverts commit 0b15c36.

 we no longer need this hack :)
  • Loading branch information
tobes committed Nov 27, 2012
1 parent a9b4a45 commit 3348be3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
5 changes: 1 addition & 4 deletions ckan/logic/action/get.py
Expand Up @@ -1178,10 +1178,7 @@ def package_search(context, data_dict):
package_dict = json.loads(package_dict)
if context.get('for_view'):
for item in plugins.PluginImplementations( plugins.IPackageController):
# NOTE: Prior to ckan 2.0 before_view() was called
# but this behaviour has been changed to improve
# performance.
package_dict = item.before_search_view(package_dict)
package_dict = item.before_view(package_dict)
results.append(package_dict)
else:
results.append(model_dictize.package_dictize(pkg,context))
Expand Down
8 changes: 0 additions & 8 deletions ckan/plugins/interfaces.py
Expand Up @@ -316,14 +316,6 @@ def before_view(self, pkg_dict):
'''
return pkg_dict

def before_search_view(self, pkg_dict):
'''
Extensions will recieve this before the dataset gets
displayed in the search view. The dictionary passed will
be the one that gets sent to the template.
'''
return pkg_dict


class IPluginObserver(Interface):
"""
Expand Down

0 comments on commit 3348be3

Please sign in to comment.