Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/recorded.py
diff options
context:
space:
mode:
authorerikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-10-31 22:09:28 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-10-31 22:09:28 (GMT)
commitb784a928f5f1ce70e4320d60a8f722e90ac7a1c4 (patch)
tree39e81de108a543f0f366efc869be2871c3181075 /recorded.py
parent803eadcc9173d85ade6215bba1242536b578293f (diff)
refactoring fixes
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@796 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'recorded.py')
-rw-r--r--recorded.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/recorded.py b/recorded.py
index 05d8edf..47010dc 100644
--- a/recorded.py
+++ b/recorded.py
@@ -23,6 +23,7 @@ import gtk
from gtk import gdk
from instance import Instance
+import utils
class Recorded:
@@ -132,7 +133,7 @@ class Recorded:
img = self.pixbufFromString( self.datastoreOb.metadata['preview'] )
thumbFilepath = os.path.join( Instance.tmpPath, "thumb.png")
- thumbFilepath = self.ca.m.getUniqueFilepath(thumbFilepath, 0)
+ thumbFilepath = utils.getUniqueFilepath(thumbFilepath, 0)
img.save(thumbFilepath, "png", {} )
return thumbFilepath
@@ -186,9 +187,9 @@ class Recorded:
return None
else:
if self.mediaFilename == None:
- ext = self.ca.m.mediaTypes[self.type][self.ca.keyExt]
+ ext = self.ca.m.mediaTypes[self.type][Constants.keyExt]
recdPath = os.path.join(Instance.tmpPath, "recdFile_"+self.mediaMd5+"."+ext)
- recdPath = self.ca.m.getUniqueFilepath(recdPath, 0)
+ recdPath = utils.getUniqueFilepath(recdPath, 0)
self.mediaFilename = os.path.basename(recdPath)
mediaFilepath = os.path.join(Instance.tmpPath, self.mediaFilename)
return os.path.abspath(mediaFilepath)