def do_login(self, args): password = getpass.getpass() if DBMS.isAdmin(password): self.prompt = 'chrisql>>> ' self.authority = 'admin' print 'you are boss in PySQL!!' elif DBMS.isUser(password): self.authority = 'user_admin' print 'hello, visiter, wellcome to PySQL :)' else: print '[Error] Wrong Password :( Plz try again.'