Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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))