Skip to content

Commit

Permalink
orm type should be specified at Repository level (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
etj committed Apr 26, 2023
1 parent 4940922 commit fc92e54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pycsw/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def __init__(self, prefix='csw30'):
self.ogc_schemas_base = 'http://schemas.opengis.net'

self.parser = PARSER
self.server = None

self.languages = {
'en': 'english',
Expand Down
2 changes: 2 additions & 0 deletions pycsw/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ def __init__(self, rtconfig=None, env=None, version='3.0.0'):
self.context.pycsw_home = self.config.get('server', 'home')
self.context.url = self.config.get('server', 'url')

self.context.server = self

log.setup_logger(self.config)

LOGGER.info('running configuration %s', rtconfig)
Expand Down

0 comments on commit fc92e54

Please sign in to comment.