Subversion Repositories SmartDukaan

Rev

Rev 3200 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3086 rajveer 1
#!/usr/bin/python
2
import sys
7609 rajveer 3
from shop2020.utils.EmailAttachmentSender import mail
3086 rajveer 4
 
5
if __name__ == '__main__' and __package__ is None:
6
    import os
7
    sys.path.insert(0, os.getcwd())
8
 
3200 rajveer 9
from shop2020.clients.CatalogClient import CatalogClient
10
 
3086 rajveer 11
def notify():
7609 rajveer 12
    try:
13
        client = CatalogClient().get_client()
14
        client.sendProductNotifications()
15
        print "Product notifications sending completed"
16
    except:
17
        mail('cnc.center@shop2020.in', '5h0p2o2o', ['rajveer.singh@shop2020.in','amit.gupta@shop2020.in','rajneesh.arora@shop2020.in'], "Email Notifier Failed", "Email Notifier Failed", [], [], [])
3086 rajveer 18
 
19
def main():
20
    notify()
21
 
22
if __name__ == '__main__':
23
    main()