Esempio n. 1
0
 def featured_product_list(campaign, offset=None, limit=None):
     products = Product.find_ordered_list(campaign, 'featured')
     return util.page_list(products if len(products) > 0 else Product.find_new_by_campaign(campaign), offset, limit)
Esempio n. 2
0
 def new_product_list(campaign, offset, limit):
     return Product.find_new_by_campaign(campaign, offset, limit)