Exemplo n.º 1
0
def business_detail():
    '''
    @todo:index page:
    '''
    return render_template(
        'business/business_detail.html',
        info=get_one_info('business', {'_id': request.args.get('_id')})
    ) 
Exemplo n.º 2
0
def invest_detail():
    '''
    @todo:index page:
    '''
    return render_template(
        'invest/invest_detail.html',
        info=get_one_info('invest', {'_id': request.args.get('_id')})
    )     
Exemplo n.º 3
0
def collaborate_detail():
    '''
    @todo:index page:
    '''
    return render_template(
        'collaborate/collaborate_detail.html',
        info=get_one_info('collaborate', {'_id': request.args.get('_id')})
    )        
Exemplo n.º 4
0
def yellow_page_detail():
    '''
    @todo:index page:
    '''
    return render_template(
        'yellow_page/yellow_page_detail.html',
        info=get_one_info('yellow_page', {'_id': request.args.get('_id')})
    )  
Exemplo n.º 5
0
def teach_detail():
    '''
    @todo:index page:
    '''
    return render_template(
        'teach/teach_detail.html',
        info=get_one_info('teach', {'_id': request.args.get('_id')})
    )  
Exemplo n.º 6
0
def news_detail():
    '''
    @todo:index page:
    '''
    return render_template(
        'news/news_detail.html',
        news=get_one_info('news', {'_id': request.args.get('_id')})
    )    
Exemplo n.º 7
0
def settings():
    if session.get('_id', None):
        return render_template(
            'setting.html',
            user=get_one_info("users", {'_id': session.get('_id', None)}),
            provice_list = get_info_list("city", query={'f_id': "0"}, return_type = "list", sort=1),
            city_list = get_info_list("city", query={'f_id': "35"}, return_type = "list", sort=1)
        )
    else:
        return redirect('/')    
Exemplo n.º 8
0
def detail_sell():
    return render_template(
        'sell/detail_sell.html',
        info=get_one_info('sell', {'_id': request.args.get('_id')})
      
    )   
Exemplo n.º 9
0
def detail_buy():
    return render_template(
        'buy/detail_buy.html',
        info=get_one_info('buy', {'_id': request.args.get('_id')})
      
    )