Esempio n. 1
0
def test_acct(acct):
    status, ofxfile = ofx.getOFX(acct,31)
    if  status:
        print 'Download completed successfully\n\n'
        test = raw_input('Send the results to Money (y/n)? ').upper()
        if test=='Y':
            rlib1.runFile(ofxfile)
            raw_input('Press Enter to continue...')
    else:
        print 'An online error occurred while testing the new account.'
Esempio n. 2
0
def test_quotes(): 
        status, ofxFile1, ofxFile2, htmFile = quotes.getQuotes()
        if status:
            print 'Download completed successfully\n\n'
            ask = raw_input('Open <Quotes.htm> in the default browser (y/n)?').upper()
            if ask=='Y':
                os.startfile(htmFile)   #don't wait for browser close

            ask = raw_input('Send the results to Money (y/n)? ').upper()
            if ask=='Y':
                if ofxFile2 <> '': 
                    rlib1.runFile(ofxFile2)
                    if Debug: raw_input('\nPress <Enter> to send ForceQuotes statement.')
                    time.sleep(0.5)      #slight delay, to force load order in Money
                rlib1.runFile(ofxFile1)
                raw_input('Press Enter to continue...')
        else:
            print 'An error occurred while testing Stock/Fund quotes.'