--- a/server/sources/datafeed.py Tue Aug 02 15:52:42 2011 +0200
+++ b/server/sources/datafeed.py Tue Aug 02 10:39:10 2011 +0200
@@ -351,10 +351,10 @@
def parse(self, url):
if url.startswith('http'):
- from cubicweb.sobjects.parsers import HOST_MAPPING
- for mappedurl in HOST_MAPPING:
+ from cubicweb.sobjects.parsers import URL_MAPPING
+ for mappedurl in URL_MAPPING:
if url.startswith(mappedurl):
- url = url.replace(mappedurl, HOST_MAPPING[mappedurl], 1)
+ url = url.replace(mappedurl, URL_MAPPING[mappedurl], 1)
break
self.source.info('GET %s', url)
stream = _OPENER.open(url)