Ejemplo n.º 1
0
def dashboard():
    from product.serv import get_unpay_order, get_user_product, get_product
    from user.serv import get_user_login

    user = get_user_login(g.current_login_id)
    orders = get_unpay_order(user)
    products = get_user_product(user)
    for userproduct in products:
        product = get_product(userproduct.product_key)
        setattr(userproduct, "product", product)
    return render_template("dashboard.html", **locals())
Ejemplo n.º 2
0
def dashboard():
    from product.serv import get_unpay_order, get_user_product, get_product, get_all_images
    from user.serv import get_user_login, get_user_profile
    user = get_user_login(g.current_login_id)
    orders = get_unpay_order(user)
    profile = get_user_profile(g.current_login_id)
    products = get_user_product(user)
    images = dict([(sysimage.image_key,sysimage.image_name) for sysimage in get_all_images()])
    for userproduct in products:
        product = get_product(userproduct.product_key)
        setattr(userproduct,"product",product)
    return render_template("dashboard.html", **locals())