Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/record.py
diff options
context:
space:
mode:
authorerikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-02 20:13:35 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-02 20:13:35 (GMT)
commit8ea6fd4da24f05214c65d891bc1ccf02e0752f98 (patch)
tree65acc190a53d072a7bfe666754a8f81d61017bff /record.py
parent16da6678b2a05844ef30de7ee44c756c0c9466e1 (diff)
nice button gfx...
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@843 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'record.py')
-rwxr-xr-xrecord.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/record.py b/record.py
index 56a5351..51a8961 100755
--- a/record.py
+++ b/record.py
@@ -342,8 +342,9 @@ class Record(activity.Activity):
if (not askingAnotherBud):
self.__class__.log.debug('weve tried all buddies here, and no one has this recd')
- #todo: flag this recd, so that when new buddies show up, we can ask them if they've got it (if they are returning).
- #todo: or clear triedMeshBuddies and let them try again.
+
+ recd.triedMeshBuddies = []
+ self.ui.updateMeshProgress(False, None)
def meshReqRecFromBuddy( self, recd, fromWho ):
@@ -355,7 +356,7 @@ class Record(activity.Activity):
recd.meshReqCallbackId = gobject.timeout_add(self.meshTimeoutTime, self._meshCheckOnRecdRequest, recd)
self.recTube.requestRecdBits( Instance.keyHashPrintable, fromWho, recd.mediaMd5 )
- #self.ca.ui.updateDownloadFrom( fromWho ) #todo...
+ self.ui.updateMeshProgress(True, nick)
def _meshCheckOnRecdRequest( self, recdRequesting ):
@@ -436,6 +437,7 @@ class Record(activity.Activity):
#update the progress bar
recd.meshDownlodingPercent = (part+0.0)/(numparts+0.0)
+ self.ui.updateMeshProgress(True, recd)
f = open(recd.getMediaFilepath(), 'a+').write(bytes)
if part == numparts: