def show_all():
    '''Get details of attribute for the records(L1)'''

    currDate = time.strftime("%d-%m-%Y", time.localtime(time.time()))
    nowDate = str(currDate).split("-")
    month = nowDate[1]
    year = nowDate[2][2:]
    
    os.system("cls")

    print "SHOW ALL Record"
    print "==============="
    print "Enter details of the record you want"
    print "Press <enter> for current year or month"
    print "(Key in '-e' to back to main menu)"
    
    yr = raw_input("Year (YY) : ")

    if yr == "":
        yr = year

   
    mth = raw_input("Month (MM) : ")
    back_main_menu(mth)
    
    if mth == "":
        mth = month
        fg = 1
    else:
        if 1 < int(mth) <= 12:
            fg = 1
        else:
            fg = 0

    if fg == 1:
        show_all_sql(yr, mth)
    else:
        print "Unvalid date"
        time.sleep(2)
        # return to main menu
        main_menu()
Get details of attribute for the records(L1)
recipes/Python/496762_Personal_Finance_Assistance/recipe-496762.py