Subversion Repositories SmartDukaan

Rev

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

Rev 5768 Rev 5866
Line 1681... Line 1681...
1681
 
1681
 
1682
    html = Template(html).substitute(dict(product=product,date=date,url=url))
1682
    html = Template(html).substitute(dict(product=product,date=date,url=url))
1683
    
1683
    
1684
    try:
1684
    try:
1685
        helper_client = HelperClient().get_client()
1685
        helper_client = HelperClient().get_client()
1686
        helper_client.saveUserEmailForSending(email, "", "Product requested by you is available now.", html, str(itemId), "ProductNotification")
1686
        helper_client.saveUserEmailForSending([email], "", "Product requested by you is available now.", html, str(itemId), "ProductNotification", [], [])
1687
    except Exception as e:
1687
    except Exception as e:
1688
        print e
1688
        print e
1689
 
1689
 
1690
def get_all_sources():
1690
def get_all_sources():
1691
    sources = Source.query.all()
1691
    sources = Source.query.all()