Skip to content

Commit

Permalink
Moved api_info.html to datastore ext, datastore now has a template pa…
Browse files Browse the repository at this point in the history
…th added to globals
  • Loading branch information
jrods committed Sep 29, 2016
1 parent bc9bb6a commit ffc7c7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckanext/datastore/plugin.py
Expand Up @@ -48,6 +48,7 @@ class DatastoreException(Exception):

class DatastorePlugin(p.SingletonPlugin):
p.implements(p.IConfigurable, inherit=True)
p.implements(p.IConfigurer)
p.implements(p.IActions)
p.implements(p.IAuthFunctions)
p.implements(p.IResourceUrlChange)
Expand All @@ -71,6 +72,9 @@ def __new__(cls, *args, **kwargs):

return super(cls, cls).__new__(cls, *args, **kwargs)

def update_config(self, config):
p.toolkit.add_template_directory(config, 'templates')

def configure(self, config):
self.config = config
# check for ckan.datastore.write_url and ckan.datastore.read_url
Expand Down
File renamed without changes.

0 comments on commit ffc7c7d

Please sign in to comment.