diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2008-01-21 06:57:56 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2008-01-21 06:57:56 (GMT) |
commit | 8b457cc86a396a1d9ffd9524aa22fc3ffc80de1f (patch) | |
tree | b54a7de1dfe291cfb36ae2be4a7e9a877181b2d0 /record.py | |
parent | 121ccc9cbda6c33666d6dd99cce9054811c4ffed (diff) |
51 final (?)
git-svn-id: http://mediamods.com/public-svn/camera-activity/tags/51@1019 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'record.py')
-rwxr-xr-x | record.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -108,7 +108,6 @@ class Record(activity.Activity): if ( (not recd.savedMedia) or (not recd.savedXml) ): allDone = False - self.__log__.error("somehow we didn't serialize a recd...") if (self.I_AM_CLOSING): mediaObject = recd.datastoreOb @@ -450,7 +449,9 @@ class Record(activity.Activity): recd.meshDownlodingPercent = (part+0.0)/(numparts+0.0) recd.meshDownloadingProgress = True self.ui.updateMeshProgress(True, recd) - f = open(recd.getMediaFilepath(), 'a+').write(bytes) + f = open(recd.getMediaFilepath(), 'a+') + f.write(bytes) + f.close() if part == numparts: self.__class__.log.debug('Finished receiving %s' % recd.title) @@ -487,7 +488,6 @@ class Record(activity.Activity): def _getAlbumArtCb( self, objectThatSentTheSignal, pixbuf, recd ): - self.__class__.log.debug("_getAlbumArtCb:" + str(pixbuf) + "," + str(recd)) if (pixbuf != None): imagePath = os.path.join(Instance.instancePath, "audioPicture.png") |