Esempio n. 1
0
    def start_logic(self):
        user = None

        while True:
            mode = self.user_id_input()

            if mode == 'login':
                user = self.login()
                if user is not None:
                    return user

            elif mode == 'register':
                user = self.register()
                if user is not None:
                    return user

            elif mode == 'exit':
                raise UserExitException()
Esempio n. 2
0
 def perform(self, objects, *args, **kwargs):
     raise UserExitException('See you next time!')
Esempio n. 3
0
 def perform(self, objects, *args, **kwargs):
     raise UserExitException('Bye bye...')