Subversion Repositories SmartDukaan

Rev

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

Rev 3345 Rev 3348
Line 994... Line 994...
994
    product_url = "http://www.saholic.com/mobile-phones/" + item.brand + "-" + item.model_name + "-" + item.model_number + "-" + str(item.catalog_item_id)
994
    product_url = "http://www.saholic.com/mobile-phones/" + item.brand + "-" + item.model_name + "-" + item.model_number + "-" + str(item.catalog_item_id)
995
    product_url = product_url.replace("--","-")
995
    product_url = product_url.replace("--","-")
996
    product_url = product_url.replace(" ","")
996
    product_url = product_url.replace(" ","")
997
    return product_url
997
    return product_url
998
 
998
 
-
 
999
def get_all_brands_by_category(category_id):
-
 
1000
    catm = CategoryManager()
-
 
1001
    child_categories = catm.getCategory(category_id).children_category_ids
-
 
1002
    brands = session.query(distinct(Item.brand)).filter(Item.category.in_(child_categories)).all()
999
 
1003
    
-
 
1004
    return [brand[0] for brand in brands]
1000
 
1005
 
1001
def __enque_product_notification_email(email, product, date, url, itemId):
1006
def __enque_product_notification_email(email, product, date, url, itemId):
1002
                
1007
                
1003
    html = """
1008
    html = """
1004
        <html>
1009
        <html>