Beispiel #1
0
    def configure(self, config):
        '''

        :param config: 

        '''
        from ckanext.spatial.model.package_extent import setup as setup_model

        if not toolkit.asbool(config.get(u'ckan.spatial.testing', u'False')):
            log.debug(u'Setting up the spatial model')
            setup_model()
Beispiel #2
0
    def configure(self, config):
        from ckanext.spatial.model.package_extent import setup as setup_model

        if not p.toolkit.asbool(config.get('ckan.spatial.testing', 'False')):
            log.debug('Setting up the spatial model')
            setup_model()
Beispiel #3
0
    def configure(self, config):
        from ckanext.spatial.model.package_extent import setup as setup_model

        if not tk.asbool(config.get('ckan.spatial.testing', 'False')):
            log.debug('Setting up the spatial model')
            setup_model()
Beispiel #4
0
    def configure(self, config):

        if not p.toolkit.asbool(config.get('ckan.spatial.testing', 'False')):
            setup_model()
Beispiel #5
0
    def configure(self, config):

        if not p.toolkit.asbool(config.get('ckan.spatial.testing', 'False')):
            setup_model()
Beispiel #6
0
 def configure(self, config):
     if not config.get('ckan.spatial.testing',False):
         setup_model()