def extend_core(self, model, namespaces, config): ''' Extend core configuration ''' # update INSPIRE vars self.context.namespaces.update(self.inspire_namespaces) # update harvest resource types with WMS, since WMS is not a typename, if 'Harvest' in model['operations']: model['operations']['Harvest']['parameters']['ResourceType']['values'].append('http://www.isotc211.org/schemas/2005/gmd/') # set INSPIRE config if config.has_section('metadata:inspire') and config.has_option('metadata:inspire', 'enabled') and config.get('metadata:inspire', 'enabled') == 'true': self.inspire_config = {} self.inspire_config['languages_supported'] = config.get('metadata:inspire', 'languages_supported') self.inspire_config['default_language'] = config.get('metadata:inspire', 'default_language') self.inspire_config['url'] = config.get('server', 'url') self.inspire_config['date'] = config.get('metadata:inspire', 'date') self.inspire_config['gemet_keywords'] = config.get('metadata:inspire', 'gemet_keywords') self.inspire_config['conformity_service'] = config.get('metadata:inspire', 'conformity_service') self.inspire_config['contact_name'] = config.get('metadata:inspire', 'contact_name') self.inspire_config['contact_email'] = config.get('metadata:inspire', 'contact_email') self.inspire_config['temp_extent'] = config.get('metadata:inspire', 'temp_extent') else: self.inspire_config = None self.ogc_schemas_base = config.get('server', 'ogc_schemas_base')
def extend_core(self, model, namespaces, config): ''' Extend core configuration ''' # update INSPIRE vars self.context.namespaces.update(self.inspire_namespaces) # update harvest resource types with WMS, since WMS is not a typename, if 'Harvest' in model['operations']: model['operations']['Harvest']['parameters']['ResourceType']['values'].append('http://www.isotc211.org/schemas/2005/gmd/') # set INSPIRE config if config.has_section('metadata:inspire') and config.has_option('metadata:inspire', 'enabled') and config.get('metadata:inspire', 'enabled') == 'true': self.inspire_config = {} self.inspire_config['languages_supported'] = config.get('metadata:inspire', 'languages_supported') self.inspire_config['default_language'] = config.get('metadata:inspire', 'default_language') self.inspire_config['date'] = config.get('metadata:inspire', 'date') self.inspire_config['gemet_keywords'] = config.get('metadata:inspire', 'gemet_keywords') self.inspire_config['conformity_service'] = config.get('metadata:inspire', 'conformity_service') self.inspire_config['contact_name'] = config.get('metadata:inspire', 'contact_name') self.inspire_config['contact_email'] = config.get('metadata:inspire', 'contact_email') self.inspire_config['temp_extent'] = config.get('metadata:inspire', 'temp_extent') else: self.inspire_config = None self.ogc_schemas_base = config.get('server', 'ogc_schemas_base') self.url = config.get('server', 'url')
def extend_core(self, model, namespaces, config): ''' Extend core configuration ''' self.ogc_schemas_base = config.get('server', 'ogc_schemas_base')
def extend_core(self, model, namespaces, config): ''' Extend core configuration ''' self.url = config.get('server', 'url')