def get_folders(): folders = Folder.getFolders(Folder()) return folders
def post(self): folder_name = self.request.get('folder_name') folder = Folder.createFolder(Folder(),str(folder_name)) self.response.headers['Content-Type'] = 'aplication/json' return self.response.out.write(folder.content)
def get(self): folder = Folder.getSpaceInfo(Folder()) self.response.headers['Content-Type'] = 'aplication/json' return self.response.out.write(folder.content)