diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-07-28 21:02:52 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-07-28 21:02:52 +0200 |
commit | bfeab1a4d50e6d8a941a9de7b034d86d7704926d (patch) | |
tree | 3e01126ed249a79291196e90c039664454a4f7a2 /chimere/utils.py | |
parent | 8b2270ff8ebb5512d94c60604272d61ea8f8d549 (diff) | |
download | Chimère-bfeab1a4d50e6d8a941a9de7b034d86d7704926d.tar.bz2 Chimère-bfeab1a4d50e6d8a941a9de7b034d86d7704926d.zip |
XSLT import : default link
Diffstat (limited to 'chimere/utils.py')
-rw-r--r-- | chimere/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chimere/utils.py b/chimere/utils.py index 2fe5fb4..d898759 100644 --- a/chimere/utils.py +++ b/chimere/utils.py @@ -1065,7 +1065,8 @@ class HtmlXsltManager(ImportManager): not "point" in item and not ("lat" in item and item['lat']): return cls = None - dct = {'origin':"<a href='%s' target='_blank'>%s</a>" % (item['link'], + dct = {'origin':"<a href='%s' target='_blank'>%s</a>" % ( + item.get('link') or '#', self.importer_instance.origin), 'license':self.importer_instance.license, 'name':item['name']} |