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-03 06:50:23 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-03 06:50:23 (GMT)
commitb8780c1d81ec19e8c1514bfd61e029825efdba18 (patch)
tree22ea750e26a3b270c13b4cc7ba8a63a5d793e855 /record.py
parentb7b4b0b43120e9d5564627a516b650509b9e522b (diff)
fixes for mesh info
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@862 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'record.py')
-rwxr-xr-xrecord.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/record.py b/record.py
index 2bca117..b7fd611 100755
--- a/record.py
+++ b/record.py
@@ -312,7 +312,7 @@ class Record(activity.Activity):
return
#start with who took the photo
- self.meshReqRecFromBuddy( recd, recd.recorderHash )
+ self.meshReqRecFromBuddy( recd, recd.recorderHash, recd.recorderName )
def meshNextRoundRobinBuddy( self, recd ):
@@ -337,7 +337,8 @@ class Record(activity.Activity):
self.__class__.log.debug('meshNextRoundRobinBuddy: weve already tried asking this buddy for this photo')
else:
self.__class__.log.debug('meshNextRoundRobinBuddy: ask next buddy')
- self.meshReqRecFromBuddy(recd, nextBud)
+ nextNick = nextBudObj.props.nick
+ self.meshReqRecFromBuddy(recd, nextBud, nextNick)
askingAnotherBud = True
if (not askingAnotherBud):
@@ -347,15 +348,15 @@ class Record(activity.Activity):
self.ui.updateMeshProgress(False, None)
- def meshReqRecFromBuddy( self, recd, fromWho ):
+ def meshReqRecFromBuddy( self, recd, fromWho, fromWhosNick ):
self.__class__.log.debug('meshReqRecFromBuddy')
recd.triedMeshBuddies.append( fromWho )
recd.meshDownloadingFrom = fromWho
+ recd.meshDownloadingFromNick = fromWhosNick
recd.meshDownloadingProgress = False
recd.meshDownloading = True
recd.meshReqCallbackId = gobject.timeout_add(self.meshTimeoutTime, self._meshCheckOnRecdRequest, recd)
self.recTube.requestRecdBits( Instance.keyHashPrintable, fromWho, recd.mediaMd5 )
-
self.ui.updateMeshProgress(True, recd)