Skip to content

Commit

Permalink
Merge pull request #857 from etj/856_server_in_context
Browse files Browse the repository at this point in the history
orm type should be specified at Repository level (#856)
  • Loading branch information
tomkralidis authored May 27, 2023
2 parents 3e4d2f7 + 05abac8 commit 2ff04d5
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 @@ -141,6 +141,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 2ff04d5

Please sign in to comment.