Skip to content

Commit

Permalink
Change IResourceController options
Browse files Browse the repository at this point in the history
  • Loading branch information
blagojabozinovski committed Jan 29, 2024
1 parent 1073c80 commit 1c8d77d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions ckanext/validation/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def resource_create(up_func, context, data_dict):
t.check_access('resource_create', context, data_dict)

for plugin in plugins.PluginImplementations(plugins.IResourceController):
plugin.before_create(context, data_dict)
plugin.before_resource_create(context, data_dict)

if 'resources' not in pkg_dict:
pkg_dict['resources'] = []
Expand Down Expand Up @@ -521,7 +521,7 @@ def resource_create(up_func, context, data_dict):
})

for plugin in plugins.PluginImplementations(plugins.IResourceController):
plugin.after_create(context, resource)
plugin.after_resource_create(context, resource)

return resource

Expand Down Expand Up @@ -577,7 +577,7 @@ def resource_update(up_func, context, data_dict):
data_dict['datastore_active'] = resource.extras['datastore_active']

for plugin in plugins.PluginImplementations(plugins.IResourceController):
plugin.before_update(context, pkg_dict['resources'][n], data_dict)
plugin.before_resource_update(context, pkg_dict['resources'][n], data_dict)

upload = uploader.get_resource_uploader(data_dict)

Expand Down Expand Up @@ -637,7 +637,7 @@ def resource_update(up_func, context, data_dict):
'resource': resource})

for plugin in plugins.PluginImplementations(plugins.IResourceController):
plugin.after_update(context, resource)
plugin.after_resource_update(context, resource)

return resource

Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ckantoolkit>=0.0.3
frictionless==5.0.0b9
markupsafe==2.0.1
tableschema
-e git+https://github.com/ckan/ckanext-scheming.git#egg=ckanext-scheming

0 comments on commit 1c8d77d

Please sign in to comment.