1.1 --- a/EventAggregatorSupport/Resources.py Wed May 01 01:44:54 2013 +0200
1.2 +++ b/EventAggregatorSupport/Resources.py Wed May 01 15:50:34 2013 +0200
1.3 @@ -124,11 +124,18 @@
1.4 if content_type != required_content_type:
1.5 continue
1.6
1.7 + metadata = {}
1.8 + line = f.readline()
1.9 + while line.strip():
1.10 + key, value = [v.strip() for v in line.split(":", 1)]
1.11 + metadata[key] = value
1.12 + line = f.readline()
1.13 +
1.14 # Send the data to the parser.
1.15
1.16 uf = codecs.getreader(encoding or "utf-8")(f)
1.17 try:
1.18 - resources.append(resource_cls(url, parser(uf)))
1.19 + resources.append(resource_cls(url, parser(uf), metadata))
1.20 finally:
1.21 uf.close()
1.22 finally: