Ejemplo n.º 1
0
def get_drop_row_string_from_infolist(table_info_list,drop_row_name):
    after_drop_info = ''
    for row in table_info_list:
        #print 'in drop_row',type(row),len(row)
        try:
            token = string_to_token(row[0])
        except:
            return False            
        if token[0] != drop_row_name:
            for r in row:
                after_drop_info += r + '\t'            
            after_drop_info += '\n'
    return after_drop_info
Ejemplo n.º 2
0
def running():  
    RUNNING_FLAG = True
    while RUNNING_FLAG:
        input_string  = sql_input()
        input_string = input_string.lower()
        token = string_to_token(input_string)
        if len(token) == 0 :continue
        
        if token[0] == 'quit':
            RUNNING_FLAG = False
        else:
            if admin_choice(token):
                print 'Mission successed!'
            else:
                print 'Your input was wrong'
                print 'Mission failed!'
Ejemplo n.º 3
0
def input_login_infomation():
    print 'Please input you user name and password:'******'>')
    info = ['SQLess']
    info.extend(string_to_token(input_info))
    return info