Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model.py
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2010-06-25 22:02:22 (GMT)
committer Daniel Drake <dsd@laptop.org>2010-06-25 22:02:22 (GMT)
commit98fd799e05f532802c4307b99ea4f30dbfe2fc72 (patch)
tree567f04598c01bca41b3a8f3f525da2f72d9611b0 /model.py
parent014c429d71f57c7371e826691939c58ab1798847 (diff)
Record photo UUID as string
Photos were not being shared properly (the download never succeeded) because the servers MD5 checking always failed ("I don't have this photo"). This is because the UUIDs were always being saved as UUID objects, and comparing them later with a string (in getRecdByMd5) was always failing. Save UUIDs as a string to solve this issue and others that surround it.
Diffstat (limited to 'model.py')
-rw-r--r--model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/model.py b/model.py
index b7f592b..9d397b2 100644
--- a/model.py
+++ b/model.py
@@ -388,7 +388,7 @@ class Model:
def createNewRecordedMd5Sums( self, recd ):
- recd.thumbMd5 = recd.mediaMd5 = uuid.uuid4()
+ recd.thumbMd5 = recd.mediaMd5 = str(uuid.uuid4())
#load the thumbfile
thumbFile = os.path.join(Instance.instancePath, recd.thumbFilename)