Skip to content

Commit

Permalink
Update ckanext/canada/plugins.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Ward <[email protected]>
  • Loading branch information
JVickery-TBS and wardi authored Jul 24, 2023
1 parent 75baa58 commit 931137c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ckanext/canada/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ class DataGCCAInternal(p.SingletonPlugin):
p.implements(p.IPackageController, inherit=True)
p.implements(p.IActions)
p.implements(p.IResourceUrlChange)
from ckanext.validation.interfaces import IDataValidation
p.implements(IDataValidation, inherit=True)
try:
from ckanext.validation.interfaces import IDataValidation
except ImportError:
log.warn('failed to import ckanext-validation interface')
else:
p.implements(IDataValidation, inherit=True)

def update_config(self, config):
p.toolkit.add_template_directory(config, 'templates/internal')
Expand Down

0 comments on commit 931137c

Please sign in to comment.