Add a build display name, set it from the etag reported by s3 for file uploads.

This commit is contained in:
yackob03 2014-02-12 13:52:12 -05:00
parent e1a4efe35c
commit 85694dd110
8 changed files with 18 additions and 11 deletions

View file

@ -59,3 +59,9 @@ class UserRequestFiles(object):
full_key = os.path.join(self._prefix, file_id)
k = Key(self._bucket, full_key)
return k.generate_url(expires_in)
def get_file_checksum(self, file_id):
self._initialize_s3()
full_key = os.path.join(self._prefix, file_id)
k = self._bucket.lookup(full_key)
return k.etag[1:-1][:7]