def cartListing(cart_id, messageInfo=None): """Return the HTML rendered list of items in the cart""" badges = db.badgeList(cart_id) if not badges: badgesDetail = None else: badgesDetail = db.badgesDetail(badges) return render.cart(cart_id, badgesDetail, messageInfo)
def badgeListing(cart_id): """Return a HTML rendered list of badge from a cart id""" badges = db.badgeList(cart_id) if not badges: badgesDetail = None else: badgesDetail = db.badgesDetail(badges) return render.list(badgesDetail)