Author: gregoryjnewman
Date: Wed Sep 17 05:53:22 2008
New Revision: 885
Modified:
trunk/pinax/local_apps/photos/views.py
trunk/pinax/templates/photos/details.html
Log:
removing buggy exif code from photos/view that was throwing an exception on
exif tags
Modified: trunk/pinax/local_apps/photos/views.py
==============================================================================
--- trunk/pinax/local_apps/photos/views.py (original)
+++ trunk/pinax/local_apps/photos/views.py Wed Sep 17 05:53:22 2008
@@ -74,11 +74,6 @@
p.append({"name":project.name, "slug":project.slug, "id":project.id,
"has_photo":False})
- # @@@ is there a better way?
- # TODO: redo this exif routine
- photo_path = os.path.join(settings.MEDIA_ROOT, "photologue/photos",
photo.image_filename())
- f = open(photo_path, 'rb')
- exif = EXIF.process_file(f)
title = photo.title
host = "http://%s" % get_host(request)
if photo.member == request.user:
@@ -154,7 +149,6 @@
return render_to_response("photos/details.html", {
"host": host,
"photo": photo,
- "exif": exif,
"is_me": is_me,
"other_user": other_user,
"projects": p,
Modified: trunk/pinax/templates/photos/details.html
==============================================================================
--- trunk/pinax/templates/photos/details.html (original)
+++ trunk/pinax/templates/photos/details.html Wed Sep 17 05:53:22 2008
@@ -32,7 +32,6 @@
<p>{{ photo.caption }}</p>
</div>
- {% print_exif exif %}
<h3>Comments on This Photo:</h3>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---