Permalink
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...
tomkralidis
tomkralidis committed May 4, 2012
1 parent 905cc0c commit bb5fee813d79b6540c81b1d17170819da5f36293
Showing with 5 additions and 5 deletions.
  1. +4 −4 server/plugins/repository/geonode/geonode_.py
  2. +1 −1 server/server.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
@@ -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:

0 comments on commit bb5fee8

Please sign in to comment.