Exemple #1
0
    def get(self, filename):

        export = ExportTask.query(UserImage.filename == filename).get()

        if not export:
            self.error(404)
        else:
            self.send_blob(filestore.get_blob_key(export.filename))
Exemple #2
0
    def get(self, filename):

    	export = ExportTask.query(UserImage.filename == filename).get()
    	

        if not export:
            self.error(404)
        else:
			self.send_blob(filestore.get_blob_key(export.filename))
Exemple #3
0
    def get(self, filename):

        image = UserImage.query(UserImage.filename == filename).get()

        if self.request.get('fullsize'):
            key = image.original_size_key
        else:
            key = image.serving_size_key

        if not image:
            self.error(404)
        else:
            self.send_blob(filestore.get_blob_key(key))
Exemple #4
0
    def get(self, filename):

        image = UserImage.query(UserImage.filename == filename).get()

        if self.request.get('fullsize'):
            key = image.original_size_key
        else:
            key = image.serving_size_key

        if not image:
            self.error(404)
        else:
            self.send_blob(filestore.get_blob_key(key))