aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2012-03-23 18:35:43 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2012-03-25 14:42:03 +0200
commitf116a1243f4da3fb8c54b42956eb9b76107024ab (patch)
treec87c83e3032df5eadcbf587984c027348c80f3da
parent763ef5b77eaa8f6f172c26f6cb2d985dcd330f44 (diff)
downloadmediagoblin-f116a1243f4da3fb8c54b42956eb9b76107024ab.tar.lz
mediagoblin-f116a1243f4da3fb8c54b42956eb9b76107024ab.tar.xz
mediagoblin-f116a1243f4da3fb8c54b42956eb9b76107024ab.zip
Use exif_display_iter in the template.
As the newly created entries have media_data.exif_all use the exif_display_iter method to calculate the exif entries for displaying on the fly. After the mongo migration all the old entries will also have exif_all and will work again.
-rw-r--r--mediagoblin/templates/mediagoblin/utils/exif.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/mediagoblin/templates/mediagoblin/utils/exif.html b/mediagoblin/templates/mediagoblin/utils/exif.html
index 37f274fe..a89e69c8 100644
--- a/mediagoblin/templates/mediagoblin/utils/exif.html
+++ b/mediagoblin/templates/mediagoblin/utils/exif.html
@@ -18,11 +18,12 @@
{% block exif_content %}
{% if app_config['exif_visible']
- and media.media_data.exif is defined
- and media.media_data.exif.has_key('useful') %}
+ and media.media_data
+ and media.media_data.exif_all is defined
+ and media.media_data.exif_all %}
<h3>EXIF</h3>
<table>
- {% for key, tag in media.media_data.exif.useful.items() %}
+ {% for key, tag in media.exif_display_iter() %}
<tr>
<td>{{ key }}</td>
<td>{{ tag.printable }}</td>