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 18:38:19 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-10-26 18:38:19 (GMT)
commit501d920cf2c23e05ea5417daba70a99d30f3054b (patch)
treef8e66935655c2f3aab917ba13334256627128a99 /recorded.py
parentad4a0e88fbec354b566de1a551d9ae7557e438c8 (diff)
in dev mesh code
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@737 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'recorded.py')
-rw-r--r--recorded.py26
1 files changed, 5 insertions, 21 deletions
diff --git a/recorded.py b/recorded.py
index 022abf3..f5ccbdc 100644
--- a/recorded.py
+++ b/recorded.py
@@ -64,8 +64,12 @@ class Recorded:
self.meshDownloading = False
self.meshDownloadingFrom = ""
self.meshDownlodingPercent = 0.0
+ self.meshDownloadProgress = False
#if someone is downloading this, then hold onto it
self.meshLocked = False
+ self.meshReqCallbackId = 0
+
+ self.deleted = False
def setTitle( self, newTitle ):
@@ -172,7 +176,7 @@ class Recorded:
return None
else:
if ( (self.ca.recTube != None) and meshReq):
- self.initRequestRecdBuddyBits()
+ self.ca.meshInitRoundRobin(self)
return None
else:
@@ -188,26 +192,6 @@ class Recorded:
return self.datastoreOb.file_path
- def initRequestRecdBuddyBits( self ):
- if (self.meshDownloading):
- print("we are in midst of downloading this file...")
- return
-
- #start with who took the photo
- 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 ):
pbl = gtk.gdk.PixbufLoader()
import base64