plugin.py 412 Bytes
Newer Older
thepaeth's avatar
thepaeth committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import ckan.plugins as plugins
import ckan.plugins.toolkit as toolkit


class DataplatformPlugin(plugins.SingletonPlugin):
    plugins.implements(plugins.IConfigurer)

    # IConfigurer

    def update_config(self, config_):
        toolkit.add_template_directory(config_, 'templates')
        toolkit.add_public_directory(config_, 'public')
        toolkit.add_resource('fanstatic',
            'dataplatform')