Subversion Repositories SmartDukaan

Rev

Rev 7609 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#!/usr/bin/python
import sys
from shop2020.utils.EmailAttachmentSender import mail

if __name__ == '__main__' and __package__ is None:
    import os
    sys.path.insert(0, os.getcwd())

from shop2020.clients.CatalogClient import CatalogClient

def notify():
    try:
        client = CatalogClient().get_client()
        client.sendProductNotifications()
        print "Product notifications sending completed"
    except:
        mail('cnc.center@shop2020.in', '5h0p2o2o', ['eng@shop2020.in'], "Email Notifier Failed", "Email Notifier Failed", [], [], [])
            
def main():
    notify()

if __name__ == '__main__':
    main()