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

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

src/d/a/daisyproducer-HEAD/documents/views/todo.py   daisyproducer(Download)
    if request.method == 'POST':
        form = DTBForm(request.POST)
        if form.is_valid():
            inputFile = document.latest_version().content.path
            outputDir = tempfile.mkdtemp(prefix="daisyproducer-")

src/d/a/daisyproducer-HEAD/documents/views/browse.py   daisyproducer(Download)
def as_dtb(request, document_id):
    form = DTBForm(request.POST)
 
    if not form.is_valid():
        return HttpResponseRedirect(reverse('browse_detail', args=[document_id]))