def get(self): name = str(self.request.get("name")) board = keyboard(name) board = [board[0]+' '+board[1], board[2]+' '+board[3], board[4]+' '+board[5]] self.response.out.write(board)
def get(self): qU = gUser(self) mode = 'colemak'; garray=[] garray = [ 'welcome start by typing this line here ', 'you can log in by clicking users above ', 'you can also change your keyboard layout ', 'i recomend colemak but many prefer dvorak ', 'stats are shown below and saved if you log in ', 'there are lessons poems and even songs ', 'this is the last line of the tutorial how did you do '] lesson = 'tutorial' if users.get_current_user(): url = users.create_logout_url(self.request.uri) urltext = 'Logout '+str(qU.name) else: url = users.create_login_url(self.request.uri) urltext = 'Login' tabs = courseTabs(qU) board = keyboard("colemak") template_values = { "tabs": tabs, "garray": garray, "lesson": lesson, "board": board, "url": url, "urltext": urltext } path = os.path.join(os.path.dirname(__file__),'templates/type.html') self.response.out.write(template.render(path, template_values))