def GET(self): uploadURL, err = fs.putAuth() if err != None: web.debug(err) raise web.notfound() encodedURL = base64.urlsafe_b64encode(uploadURL) page_info = PageInfo('Upload') ans, temp_user = infoDBserver.get_user(session.get_user_id()) if ans: current_user = transclass.user_trans(temp_user) return render.upload(current_user, page_info, encodedURL) else: return web.notfound()
def GET(self, id): session_id = session.get_user_id() if int(id) != session_id: raise web.notfound() uploadURL, err = fs.putAuth() if err != None: web.debug(err) raise web.notfound() encodedURL = base64.urlsafe_b64encode(uploadURL) page_info = PageInfo('Personal Edit') ans, temp_user = infoDBserver.get_user(session_id) if ans: current_user = transclass.user_trans(temp_user) return render.personal_edit(current_user, page_info, encodedURL) else: raise web.notfound()