diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-10-26 16:30:01 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-10-26 16:30:01 (GMT) |
commit | 9dbb3e45a389b1d9cff978eba3d1d6968f27be06 (patch) | |
tree | 67b0088c918027136b880eb08fac210f3e028d10 /recorded.py | |
parent | 1877fffbaaeaa44544f85be22b2ed08d87342a08 (diff) |
prepping for sending full media over the mesh
adding hash of user id to recd metadata
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@735 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'recorded.py')
-rw-r--r-- | recorded.py | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/recorded.py b/recorded.py index 80a7c8b..cd6d46e 100644 --- a/recorded.py +++ b/recorded.py @@ -29,7 +29,8 @@ class Recorded: self.type = -1 self.time = None - self.photographer = None + self.recorderName = None + self.recorderHash = None self.title = None self.colorStroke = None self.colorFill = None @@ -63,6 +64,8 @@ class Recorded: self.meshDownloading = False self.meshDownloadingFrom = "" self.meshDownlodingPercent = 0.0 + #if someone is downloading this, then hold onto it + self.meshLocked = False def setTitle( self, newTitle ): @@ -168,7 +171,7 @@ class Recorded: return None else: if ( (self.ca.recTube != None) and meshReq): - self.ca.recTube.requestMediaBits( self ) + self.getRecdBitsFromMesh() return None else: @@ -181,11 +184,18 @@ class Recorded: print("RecordActivity error -- unable to get datastore object in getMediaFilepath") return None - #if this is a buddy's media and you only ever got a thumbnail, then return null and query for the real deal... - return self.datastoreOb.file_path + def getRecdBitsFromMesh( self ): + if (self.meshDownloading): + print("we are in midst of downloading this file...") + return + + #start with who took the photo + self.triedMeshBuddies.append( self.) + + def pixbufFromString( self, str ): pbl = gtk.gdk.PixbufLoader() import base64 |