Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/a/patchman-0.9.1/patchman/repos/views.py   patchman(Download)
from operatingsystems.models import OSGroup
from arch.models import MachineArchitecture
from repos.forms import EditRepoForm, LinkRepoForm, CreateRepoForm, \
    EditMirrorForm
 
 
    if request.method == 'POST':
        edit_form = EditMirrorForm(request.POST, instance=mirror)
        if edit_form.is_valid():
            mirror = edit_form.save()
            mirror = get_object_or_404(Mirror, id=mirror_id)
    else:
        edit_form = EditMirrorForm(instance=mirror)
 
    return render_to_response('repos/mirror_edit.html',