예제 #1
0
파일: export.py 프로젝트: schmidan/MyLife
    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))
예제 #2
0
파일: export.py 프로젝트: algimantas/MyLife
    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))
예제 #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))
예제 #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))