def GET(self, req): print '-----into get--------' user_info = ['test'] filepath='/tmp/haha/a.txt' fop = FileOp(user_info, filepath, req) ret = fop.downloadData() print 'into get ----------------' #return HTTPOk(body ='download over----',content_type='application/json') return ret
def PUT(self, req): print '-----into put--------' user_info = ['test'] filepath='/tmp/haha/a.txt' fop = FileOp(user_info, filepath, req) ret = fop.uploadData() print 'into get ----------------' #return HTTPOk(body ='TestController Running',content_type='application/json') return ret
def POST(self, req): print '-----into Fileops POST--------' user_info = ['test'] filepath='/tmp/haha/a.txt' fop = FileOp(user_info, filepath, req) ret = fop.create_folder() print 'into get ----------------' #return HTTPOk(body ='TestController Running',content_type='application/json') print ret return ret