def get(self): # Get attachment from datastore self.attachment = Attachment().get_by_key_name(self.src_key) #self.blobpart = self.attachment.blobParts.get() #This above way does not get all attachments. self.blobparts = BlobPart.all().filter('blobEntity =', self.attachment).run()