Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix geonode repository init

git-svn-id: https://pycsw.svn.sourceforge.net/svnroot/pycsw/trunk@521 f6d6ccb1-4906-4145-b9cb-3503ec0a5639
  • Loading branch information...
commit bb5fee813d79b6540c81b1d17170819da5f36293 1 parent 905cc0c
tomkralidis authored
View
8 server/plugins/repository/geonode/geonode_.py
@@ -49,7 +49,7 @@
class GeoNodeRepository(object):
''' Class to interact with underlying repository '''
- def __init__(self, qconfig, context):
+ def __init__(self, context):
''' Initialize repository '''
self.context = context
@@ -68,12 +68,12 @@ def __init__(self, qconfig, context):
# generate core queryables db and obj bindings
self.queryables = {}
- for tname in qconfig:
- for qname in qconfig[tname]['queryables']:
+ for tname in self.context.model['typenames']:
+ for qname in self.context.model['typenames'][tname]['queryables']:
self.queryables[qname] = {}
for qkey, qvalue in \
- qconfig[tname]['queryables'][qname].iteritems():
+ self.context.model['typenames'][tname]['queryables'][qname].iteritems():
self.queryables[qname][qkey] = qvalue
# flatten all queryables
View
2  server/server.py
@@ -191,7 +191,7 @@ def __init__(self, configfile=None, env=None):
try:
self.repository = \
- geonode_.GeoNodeRepository(self.context.model['typenames'])
+ geonode_.GeoNodeRepository(self.context)
self.log.debug('GeoNode repository loaded (geonode): %s.' % \
self.repository.dbtype)
except Exception, err:
Please sign in to comment.
Something went wrong with that request. Please try again.