aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTryggvi Björgvinsson <tryggvib@fsfi.is>2012-11-25 16:38:44 +0000
committerTryggvi Björgvinsson <tryggvib@fsfi.is>2012-11-25 16:38:44 +0000
commit2d8ce464de32611a86532313564e2e5ff1e2c0e5 (patch)
treed625abb5408c46a4d48a9bcb65243dc44f4334dc
parentd682d066d375177461db82986dc79028925a8819 (diff)
downloadmediagoblin-2d8ce464de32611a86532313564e2e5ff1e2c0e5.tar.lz
mediagoblin-2d8ce464de32611a86532313564e2e5ff1e2c0e5.tar.xz
mediagoblin-2d8ce464de32611a86532313564e2e5ff1e2c0e5.zip
Documented the get_original_date method
-rw-r--r--mediagoblin/media_types/image/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mediagoblin/media_types/image/models.py b/mediagoblin/media_types/image/models.py
index b02c41d3..64be20c0 100644
--- a/mediagoblin/media_types/image/models.py
+++ b/mediagoblin/media_types/image/models.py
@@ -41,6 +41,11 @@ class ImageData(Base):
gps_direction = Column(Float)
def get_original_date(self):
+ """
+ Get the original date and time from the EXIF information. Returns
+ either a datetime object or None (if anything goes wrong)
+ """
+
import datetime
try:
# Try wrapped around all since exif_all might be none,