Esempio n. 1
0
    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()
Esempio n. 2
0
    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()
Esempio n. 3
0
 def getViewTitles():
     Common.clearTerminal()
     Common.printStandartText(ViewTextConstants.REGISTER_TITLE)
Esempio n. 4
0
 def clear():
     Common.clearTerminal()
     ProfileController.getViewTitles()
Esempio n. 5
0
 def getViewTitles():
     Common.clearTerminal()
     Common.printStandartText(
         f"Chat area with {programLocation.getLocationParameters().get('chatWith')}, say /help for help\n"
     )
Esempio n. 6
0
 def clear():
     Common.clearTerminal()
     ChatController.getViewTitles()
     ChatController.stream()
Esempio n. 7
0
 def getViewTexts():
     Common.clearTerminal()
     Common.printStandartText(ViewTextConstants.ACCESS_TITLE)
     Common.printStandartText(ViewTextConstants.ACCESS_SUBTITLE)
Esempio n. 8
0
 def clearCommand(**kwargs):
     Common.clearTerminal()
     kwargs.get("controller").clear()
Esempio n. 9
0
 def clear():
     Common.clearTerminal()
     LobbyController.getViewTitles()
 def getViewTitles():
     Common.clearTerminal()
     Common.printStandartText(ViewTextConstants.NOTIFICATION_TITLE)
 def clear():
     Common.clearTerminal()
     NotificationController.getViewTitles()