summaryrefslogtreecommitdiff
path: root/planet
diff options
context:
space:
mode:
authorSam Ruby <rubys@intertwingly.net>2010-10-31 14:34:37 -0400
committerSam Ruby <rubys@intertwingly.net>2010-10-31 14:34:37 -0400
commitf12cd71c0e3a2730ab0c320e71296a5a04a4b9e0 (patch)
tree81e31aa09ac82b16c7dd8c12bcabd678587d7c2d /planet
parent040d9d5f5ab8e60913ff4684977a56580bd551ec (diff)
parentc2ff9f22dbf2089f1d40876c276b9cb965fc47ab (diff)
downloadplanetpixels-f12cd71c0e3a2730ab0c320e71296a5a04a4b9e0.tar.gz
planetpixels-f12cd71c0e3a2730ab0c320e71296a5a04a4b9e0.tar.bz2
Merge branch 'master' of http://github.com/mortenf/venus
Diffstat (limited to 'planet')
-rw-r--r--planet/reconstitute.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/planet/reconstitute.py b/planet/reconstitute.py
index 8d0979c..ffba7a0 100644
--- a/planet/reconstitute.py
+++ b/planet/reconstitute.py
@@ -279,6 +279,11 @@ def reconstitute(feed, entry):
date(xentry, 'updated', entry_updated(feed.feed, entry, time.gmtime()))
date(xentry, 'published', entry.get('published_parsed',None))
+ if entry.has_key('dc_date.taken'):
+ date_Taken = createTextElement(xentry, '%s:%s' % ('dc','date_Taken'), '%s' % entry.get('dc_date.taken', None))
+ date_Taken.setAttribute('xmlns:%s' % 'dc', 'http://purl.org/dc/elements/1.1/')
+ xentry.appendChild(date_Taken)
+
for tag in entry.get('tags',[]):
category(xentry, tag)