diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-08-31 22:38:11 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-08-31 22:38:11 (GMT) |
commit | 6b0ec2ca9c69bbbc0cbb784b15880f69e598056c (patch) | |
tree | 6b70d7781d0412e056742753d89df6be8d664cef /recorded.py | |
parent | 8be384bc6dba1e5c238be3d33535de103e3554e4 (diff) |
lots of untested crap
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@419 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'recorded.py')
-rw-r--r-- | recorded.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/recorded.py b/recorded.py index 08728fc..3fac646 100644 --- a/recorded.py +++ b/recorded.py @@ -47,7 +47,6 @@ class Recorded: #if not from the datastore, then your media is here... self.mediaFilename = None self.thumbFilename = None - #todo: use this too self.audioImageFilename = None #assume you took the picture @@ -134,8 +133,7 @@ class Recorded: return None - def getAudioImage( self ): - #todo: implement this + def getAudioImagePixbuf( self ): if (self.datastoreId == None): #just taken, so it is in the tempSessionDir #so load file, convert to pixbuf, and return it here... @@ -153,10 +151,9 @@ class Recorded: import base64 data = base64.b64decode(self.datastoreOb.metadata['audioImage']) pbl.write(data) - #todo: write to tmp (rainbow?) and random unused filename... audioImageFilepath = os.path.join(self.ca.journalPath, "audioImage.png") thumbImg.save(audioImageFilepath, "png", {} ) - return thumbFilepath + return audioImageFilepath return None |