Exemple #1
0
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())
Exemple #2
0
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())
Exemple #3
0
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())
Exemple #4
0
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())