diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-10-26 00:07:36 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-10-26 00:07:36 (GMT) |
commit | 1877fffbaaeaa44544f85be22b2ed08d87342a08 (patch) | |
tree | 83e771f1d13974e105c28455215f115fe0d4ba0c /recorded.py | |
parent | a9085455cbb4c2dc6e98191395966d5cc8b39dc6 (diff) |
i don't remember what these changes do
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@734 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'recorded.py')
-rw-r--r-- | recorded.py | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/recorded.py b/recorded.py index 134de90..80a7c8b 100644 --- a/recorded.py +++ b/recorded.py @@ -51,16 +51,18 @@ class Recorded: self.thumbFilename = None self.audioImageFilename = None - #assume you took the picture - self.buddy = False - self.downloadedFromBuddy = False - self._triedMeshBuddies = [] - #for flagging when you are being saved to the datastore for the first time... #and just because you have a datastore id, doesn't mean you're saved self.savedMedia = False self.savedXml = False + #assume you took the picture + self.buddy = False + self.downloadedFromBuddy = False + self.triedMeshBuddies = [] + self.meshDownloading = False + self.meshDownloadingFrom = "" + self.meshDownlodingPercent = 0.0 def setTitle( self, newTitle ): @@ -162,13 +164,12 @@ class Recorded: mediaFilepath = os.path.join(self.ca.tempPath, self.mediaFilename) return os.path.abspath(mediaFilepath) else: - #you should request it from someone and return None for the request to handle... - #e.g., thumbs for pics, or "coming attractions" for videos ;-) - #todo: always re-request? - #todo: notify to the user that the request is underway or not possible... - if ( (self.ca.meshClient != None) and meshReq): - self.ca.meshClient.requestMediaBits( self ) - return None + if (self.meshDownloading): + return None + else: + if ( (self.ca.recTube != None) and meshReq): + self.ca.recTube.requestMediaBits( self ) + return None else: #pulling from the datastore, regardless of who took it, cause we got it |