Skip to content

Commit

Permalink
[#56] Add CKAN<2.10 before index hook variant
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed May 21, 2024
1 parent 20ac269 commit 5375232
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckanext/dcat/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ def get_auth_functions(self):
def after_show(self, context, data_dict):
return self.after_dataset_show(context, data_dict)

def before_index(self, dataset_dict):
return self.before_dataset_index(dataset_dict)

# CKAN >= 2.10 hooks
def after_dataset_show(self, context, data_dict):

Expand Down

0 comments on commit 5375232

Please sign in to comment.