예제 #1
0
 def __init__(self, client=None):
     print bcolors.HEADER + 'Hi, welcome to academic tag' + bcolors.ENDC
     print bcolors.HEADER + 'Please choose following options:' + bcolors.ENDC
     print bcolors.OKBLUE + '#1 Check your registration status' + bcolors.ENDC
     if client:
         self.client = RegistrationCheckClient(client=client)
     promp_input(self.regis_check)
예제 #2
0
class Academic:
    def __init__(self, client=None):
        print bcolors.HEADER + 'Hi, welcome to academic tag' + bcolors.ENDC
        print bcolors.HEADER + 'Please choose following options:' + bcolors.ENDC
        print bcolors.OKBLUE + '#1 Check your registration status' + bcolors.ENDC
        if client:
            self.client = RegistrationCheckClient(client=client)
        promp_input(self.regis_check)

    def regis_check(self):
        print bcolors.OKGREEN + 'We are checking your account' + bcolors.ENDC
        result = self.client.regis_status_check()
        for i in range(3):
            print '...'
            time.sleep(1)
        print bcolors.OKGREEN + 'Here is your result:' + bcolors.ENDC
        print result
        self.__init__()