Skip to content


[MetaSearch]: fix default connections testing, write out connection X…
Browse files Browse the repository at this point in the history
…ML to file instead
  • Loading branch information
tomkralidis committed Feb 27, 2015
1 parent 5ab9103 commit fb138b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/MetaSearch/
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def test_default_csw_connections():
csw = CatalogueServiceWeb(conn.attrib.get('url'))
info('Success: %s', csw.identification.title)
except Exception, err:
raise ValueError('ERROR: %s', err)

Expand Down Expand Up @@ -214,12 +215,11 @@ def generate_csw_connections_file():
csw = CatalogueServiceWeb(url)
title = unicode(csw.identification.title)
conn = etree.SubElement(conns, 'csw', name=title, url=url)
#conn.attrib['name'] = title
#conn.attrib['url'] = url
except Exception, err:
error('ERROR on CSW %s: %s', url, err)

info(etree.tostring(conns, encoding='utf-8'))
with open('%s.xml' % filename, 'w') as connsxmlfh:
connsxmlfh.write(etree.tostring(conns, encoding='utf-8'))

def get_package_filename():
Expand Down

0 comments on commit fb138b5

Please sign in to comment.