def registerForm(): form = RegisterForm() form.fillTheForm() Common.clearTerminal() if form.validation(): response = Connection.registerRequest(form.getData()) successful = response.get("successful") message = response.get("message") if successful: Common.printPositiveText(message) else: Common.printNegativeText(message) else: Common.printNegativeText(form.getValidationMessage()) Common.programSleep()
def loginForm(): form = LoginForm() form.fillTheForm() Common.clearTerminal() if form.validation(): response = Connection.loginRequest(form.getData()) successful = response.get("successful") message = response.get("message") if successful: Common.printPositiveText(message) Common.programSleep() LobbyView.view() else: Common.printNegativeText(message) else: Common.printNegativeText(form.getValidationMessage()) Common.programSleep()
def getViewTitles(): Common.clearTerminal() Common.printStandartText(ViewTextConstants.REGISTER_TITLE)
def clear(): Common.clearTerminal() ProfileController.getViewTitles()
def getViewTitles(): Common.clearTerminal() Common.printStandartText( f"Chat area with {programLocation.getLocationParameters().get('chatWith')}, say /help for help\n" )
def clear(): Common.clearTerminal() ChatController.getViewTitles() ChatController.stream()
def getViewTexts(): Common.clearTerminal() Common.printStandartText(ViewTextConstants.ACCESS_TITLE) Common.printStandartText(ViewTextConstants.ACCESS_SUBTITLE)
def clearCommand(**kwargs): Common.clearTerminal() kwargs.get("controller").clear()
def clear(): Common.clearTerminal() LobbyController.getViewTitles()
def getViewTitles(): Common.clearTerminal() Common.printStandartText(ViewTextConstants.NOTIFICATION_TITLE)
def clear(): Common.clearTerminal() NotificationController.getViewTitles()