コード例 #1
0
def register_view(request):
    result = request.query.get('result', '')
    result = unquote_plus(result)

    body = GuaTemplate.render('register.html', result=result)
    return html_response(body)
コード例 #2
0
def edit(request):
    todo_id = int(request.query['id'])
    t = Todo.find_by(id=todo_id)
    body = Template.render('todo_edit.html', todo=t)
    return html_response(body)
コード例 #3
0
def register_view(request):
    result = request.query.get('result', '')
    result = unquote_plus(result)

    return html_response('register.html', result=result)
コード例 #4
0
ファイル: routes_public.py プロジェクト: lanmie/Web-Server
def index(request):
    """
    主页的处理函数, 返回主页的响应
    """
    u = current_user(request)
    return html_response('index.html', username=u.username)
コード例 #5
0
def edit(request):
    weibo_id = int(request.query['id'])
    w = Weibo.find_by(id=weibo_id)
    body = RenderTemplate.render('weibo_edit.html', weibo=w)
    return html_response(body)
コード例 #6
0
ファイル: routes_weibo.py プロジェクト: emean1010/mvc
def comment_edit(request):
    comment_id = int(request.query['id'])
    c = Comment.one(id=comment_id)
    log('in the comment_edit', c)
    return html_response('comment_edit.html', comment=c)
コード例 #7
0
def index(request):
    """
    todo 首页的路由函数
    """
    body = GuaTemplate.render('todo_index.html')
    return html_response(body)
コード例 #8
0
def edit(request):
    todo_id = int(request.query['id'])
    t = Todo.one(id=todo_id)
    token = new_csrf_token(request)
    return html_response('todo_edit.html', todo=t, token=token)
コード例 #9
0
ファイル: routes_weibo.py プロジェクト: emean1010/mvc
def edit(request):
    weibo_id = int(request.query['id'])
    w = Weibo.one(id=weibo_id)
    return html_response('weibo_edit.html', weibo=w)
コード例 #10
0
def index(request):

    u = current_user(request)
    return html_response('todo_ajax_index.html')
コード例 #11
0
def index(request):
    u = current_user(request)
    return html_response('index.html', username=u.username)
コード例 #12
0
def edit(request):
    log('routes comment edit')
    comment_id = int(request.query['id'])
    c = Comment.one(id=comment_id)

    return html_response('comment_edit.html', comment=c)
コード例 #13
0
def index(request):
    """
    todo 首页的路由函数
    """
    # 替换模板文件中的标记字符串
    return html_response('todo_ajax_index.html')
コード例 #14
0
def ajax_view(request):
    return html_response('ajax.html')