Skip to content
Snippets Groups Projects
Commit a1c8b564 authored by Benjamin Becker's avatar Benjamin Becker
Browse files

adds comment

parent 9b2c2a9c
No related branches found
No related tags found
No related merge requests found
......@@ -220,9 +220,11 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
if resource.get('package_id'):
tools.add_attributes_resources(context, resource)
def after_update(self, context, resource):
if resource.get('package_id'):
tools.add_attributes_resources(context, resource)
def after_update(self, context, resource_or_package):
if resource_or_package.get('package_id'): # this is a resource
tools.add_attributes_resources(context, resource_or_package)
else: # this is a package
pass
@staticmethod
def _update_is_new_in_pkg_dict(pkg_dict):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment