Skip to content

Commit

Permalink
Use IConfigurer for loading templates
Browse files Browse the repository at this point in the history
  • Loading branch information
fdelavega committed Apr 18, 2018
1 parent 02ff07c commit eda8633
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ckanext/ngsiview/plugin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2015 Telefonica Investigacion y Desarrollo, S.A.U
# Copyright 2018 CoNWeT Lab, Universidad Politécnica de Madrid
#
# This file is part of ckanext-ngsipreview.
#
Expand Down Expand Up @@ -67,6 +70,9 @@ def configure(self, config):
self.proxy_is_enabled = config.get('ckan.resource_proxy_enabled')
self.oauth2_is_enabled = config.get('ckan.plugins').find('oauth2') != -1

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

def info(self):
return {'name': 'ngsiview',
'title': p.toolkit._('NGSI'),
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit eda8633

Please sign in to comment.