Subversion Repositories SmartDukaan

Rev

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

Rev 3089 Rev 3201
Line 951... Line 951...
951
def __get_product_name(item):
951
def __get_product_name(item):
952
    product_name = item.brand + " " + item.model_name + " " + item.model_number
952
    product_name = item.brand + " " + item.model_name + " " + item.model_number
953
    color = item.color
953
    color = item.color
954
    if color is not None and color != 'NA':
954
    if color is not None and color != 'NA':
955
        product_name = product_name + " (" + color + ")"
955
        product_name = product_name + " (" + color + ")"
956
    product_url = product_url.replace("  "," ")
956
    product_name = product_name.replace("  "," ")
957
    return product_name
957
    return product_name
958
 
958
 
959
 
959
 
960
def __get_product_url(item):
960
def __get_product_url(item):
961
    product_url = "http://www.saholic.com/mobile-phones/" + item.brand + "-" + item.model_name + "-" + item.model_number + "-" + str(item.catalog_item_id)
961
    product_url = "http://www.saholic.com/mobile-phones/" + item.brand + "-" + item.model_name + "-" + item.model_number + "-" + str(item.catalog_item_id)