Ejemplo n.º 1
0
Archivo: views.py Proyecto: 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())
Ejemplo n.º 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())
Ejemplo n.º 3
0
Archivo: views.py Proyecto: 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())
Ejemplo n.º 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())