Subversion Repositories SmartDukaan

Rev

Rev 17031 | Rev 17116 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17031 Rev 17032
Line 760... Line 760...
760
    fileMsg.set_payload(file(TMP_FILE).read())
760
    fileMsg.set_payload(file(TMP_FILE).read())
761
    encoders.encode_base64(fileMsg)
761
    encoders.encode_base64(fileMsg)
762
    fileMsg.add_header('Content-Disposition', 'attachment;filename=' + fileName)
762
    fileMsg.add_header('Content-Disposition', 'attachment;filename=' + fileName)
763
    msg.attach(fileMsg)
763
    msg.attach(fileMsg)
764
    
764
    
765
    #MAILTO = ['manas.kapoor@saholic.com','rajneesh.arora@saholic.com']
765
    MAILTO = ['manas.kapoor@saholic.com','rajneesh.arora@saholic.com']
766
    MAILTO = ['manas.kapoor@saholic.com']
766
    #MAILTO = ['manas.kapoor@saholic.com']
767
    mailServer.login(SENDER, PASSWORD)
767
    mailServer.login(SENDER, PASSWORD)
768
    mailServer.sendmail(PASSWORD, MAILTO, msg.as_string())
768
    mailServer.sendmail(PASSWORD, MAILTO, msg.as_string())
769
 
769
 
770
class __Order:
770
class __Order:
771
    
771
    
Line 1005... Line 1005...
1005
    populateSaholicWeekWiseMap1()
1005
    populateSaholicWeekWiseMap1()
1006
    populateSaholicMonthWiseMap1()
1006
    populateSaholicMonthWiseMap1()
1007
    generateDailyReport()
1007
    generateDailyReport()
1008
    generateWeeklyReport()
1008
    generateWeeklyReport()
1009
    generateMonthlyReport()
1009
    generateMonthlyReport()
1010
    #sendmail(["manas.kapoor@shop2020.in","rajneesh.arora@saholic.com"], "", TMP_FILE, SUBJECT)
1010
    sendmail(["manas.kapoor@shop2020.in","rajneesh.arora@saholic.com"], "", TMP_FILE, SUBJECT)
1011
    sendmail(["manas.kapoor@shop2020.in"], "", TMP_FILE, SUBJECT)
1011
    #sendmail(["manas.kapoor@shop2020.in"], "", TMP_FILE, SUBJECT)
1012
    
1012
    
1013
def to_x_date(java_timestamp):
1013
def to_x_date(java_timestamp):
1014
    try:
1014
    try:
1015
        date = datetime.fromtimestamp(java_timestamp / 1e3)       
1015
        date = datetime.fromtimestamp(java_timestamp / 1e3)       
1016
    except:
1016
    except: