Ejemplo n.º 1
0
	def end(self):
		ChunkedTweetSerializer.end(self, self.persistChunk)
Ejemplo n.º 2
0
	def persistChunk(self):	
			print "writing chunk..."	
			key = Key(self.bucket)
			key.key = ChunkedTweetSerializer.nameChunk(self)
			key.set_contents_from_string(self.out.getvalue())
Ejemplo n.º 3
0
	def __init__(self, tweetsPerChunk, prefix, s3BucketName):
		ChunkedTweetSerializer.__init__(self, tweetsPerChunk, prefix)
		self.initPersistance(s3BucketName)