示例#1
0
文件: views.py 项目: mpuig/hijax
def edit_ajax(request):
    """
    This is the "hijaxed" request, to show an edit form for an item.
    """
    edit_template = Edit()
    edit_template.set_item('Joe')
    return http.HttpResponse(edit_template.render())
示例#2
0
文件: views.py 项目: laxris/hijax
def edit_ajax(request):
    """
    This is the "hijaxed" request, to show an edit form for an item.
    """
    edit_template = Edit()
    edit_template.set_item('Joe')
    return http.HttpResponse(edit_template.render())
示例#3
0
文件: views.py 项目: mpuig/hijax
def edit(request):
    """
    This is a "default" request, to show an edit form for an item.
    """
    outline_template = Outline()
    edit_template = Edit()
    edit_template.set_item('Joe')
    outline_template.set_body(edit_template)
    return http.HttpResponse(outline_template.render())
示例#4
0
文件: views.py 项目: laxris/hijax
def edit(request):
    """
    This is a "default" request, to show an edit form for an item.
    """
    outline_template = Outline()
    edit_template = Edit()
    edit_template.set_item('Joe')
    outline_template.set_body(edit_template)
    return http.HttpResponse(outline_template.render())