Subversion Repositories SmartDukaan

Rev

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

Rev 3476 Rev 3477
Line 37... Line 37...
37
                mail(from_user, from_pwd, to,\
37
                mail(from_user, from_pwd, to,\
38
                     "Order Pickup Mismatch for " + provider.name,\
38
                     "Order Pickup Mismatch for " + provider.name,\
39
                     "This is a system generated email.Please don't reply to it.",\
39
                     "This is a system generated email.Please don't reply to it.",\
40
                     pickup_mismatch_part)
40
                     pickup_mismatch_part)
41
        except Exception:
41
        except Exception:
42
            print "Some issue sending the mismatch report"
42
            print "Some issue sending the pickup mismatch report"
43
            traceback.print_exc()
43
            traceback.print_exc()
44
        
44
        
45
        doas_not_picked_up = update_picked_doas(provider.id, doa_pickup_details)
45
        doas_not_picked_up = update_picked_doas(provider.id, doa_pickup_details)
46
        try:
46
        try:
47
            if doas_not_picked_up:
47
            if doas_not_picked_up:
Line 52... Line 52...
52
                mail(from_user, from_pwd, to,\
52
                mail(from_user, from_pwd, to,\
53
                     "DOA Pickup Mismatch for " + provider.name,\
53
                     "DOA Pickup Mismatch for " + provider.name,\
54
                     "This is a system generated email.Please don't reply to it.",\
54
                     "This is a system generated email.Please don't reply to it.",\
55
                     pickup_mismatch_part)
55
                     pickup_mismatch_part)
56
        except Exception:
56
        except Exception:
57
            print "Some issue sending the mismatch report"
57
            print "Some issue sending the DOA mismatch report"
58
            traceback.print_exc()
58
            traceback.print_exc()
59
    finally:
59
    finally:
60
        os.remove(filename)
60
        os.remove(filename)
61
 
61
 
62
def process_delivery_report(provider):
62
def process_delivery_report(provider):