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-26 17:10:39 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-10-26 17:10:39 (GMT)
commitad4a0e88fbec354b566de1a551d9ae7557e438c8 (patch)
tree9ea5b8cced09f660c15014c7de4a91873fada8c8 /recorded.py
parent9dbb3e45a389b1d9cff978eba3d1d6968f27be06 (diff)
more mesh prep
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@736 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'recorded.py')
-rw-r--r--recorded.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/recorded.py b/recorded.py
index cd6d46e..022abf3 100644
--- a/recorded.py
+++ b/recorded.py
@@ -168,10 +168,11 @@ class Recorded:
return os.path.abspath(mediaFilepath)
else:
if (self.meshDownloading):
+ print("we are in midst of downloading this file...")
return None
else:
if ( (self.ca.recTube != None) and meshReq):
- self.getRecdBitsFromMesh()
+ self.initRequestRecdBuddyBits()
return None
else:
@@ -187,13 +188,24 @@ class Recorded:
return self.datastoreOb.file_path
- def getRecdBitsFromMesh( self ):
+ def initRequestRecdBuddyBits( self ):
if (self.meshDownloading):
print("we are in midst of downloading this file...")
return
#start with who took the photo
- self.triedMeshBuddies.append( self.)
+ self.meshDownloading = True
+ self.triedMeshBuddies.append( self.recorderHash )
+ self.getRecdBitsFromBuddy( self.recorderHash )
+
+
+ def nextRequestRecdBuddyBits( self, buddy ):
+ self.triedMeshBuddies.append( buddy )
+ self.getRecdBitsFromBuddy( buddy )
+
+
+ def getRecdBitsFromBuddy( self, who ):
+ self.ca.recTube.requestRecdBits( self.ca.hashedKey, who, self.mediaMd5 )
def pixbufFromString( self, str ):