diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-06-23 19:54:38 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-06-23 19:54:38 +0200 | 
| commit | 76c03459c5fb7439a7158f4911556f85cb324d18 (patch) | |
| tree | 7ae7afac9b1c6e1992fe9c4342cd958e302d71e5 /chimere/utils.py | |
| parent | 48e705e7ce868a55086794932dda92c060c228e8 (diff) | |
| download | Chimère-76c03459c5fb7439a7158f4911556f85cb324d18.tar.bz2 Chimère-76c03459c5fb7439a7158f4911556f85cb324d18.zip | |
Imports: ifx origin when no link is provided
Diffstat (limited to 'chimere/utils.py')
| -rw-r--r-- | chimere/utils.py | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/chimere/utils.py b/chimere/utils.py index 1ee5bc7..f5ddcd5 100644 --- a/chimere/utils.py +++ b/chimere/utils.py @@ -1188,9 +1188,13 @@ class HtmlXsltManager(ImportManager):                  "point" not in item and not ("lat" in item and item['lat']):              return          cls = None +        origin = self.importer_instance.origin +        origin_lnk = item.get('link') +        if origin_lnk: +            origin = u"<a href='%s' target='_blank'>%s</a>" % ( +                origin_lnk, origin)          dct = { -            'origin': "<a href='%s' target='_blank'>%s</a>" % ( -                item.get('link') or '#', self.importer_instance.origin), +            'origin': origin,              'license': self.importer_instance.license,              'name': item['name']}          category = None | 
