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

All Samples(6)  |  Call(5)  |  Derive(0)  |  Import(1)

src/d/a/daisyproducer-HEAD/documents/views/todo.py   daisyproducer(Download)
import shutil, tempfile, os.path
 
from daisyproducer.documents.external import DaisyPipeline, SBSForm, StandardLargePrint, zipDirectory, Pipeline2
from daisyproducer.documents.forms import PartialDocumentForm, PartialVersionForm, PartialAttachmentForm, PartialImageForm, OCRForm, MarkupForm, SBSFormForm, RTFForm, EPUBForm, TextOnlyDTBForm, DTBForm, SalePDFForm, ODTForm
from daisyproducer.documents.models import Document, Version, Attachment, Image, Product, LargePrintProfileForm
        raise Http404
 
    versionForm = PartialVersionForm()
    attachmentForm = PartialAttachmentForm()
    imageForm = PartialImageForm()
    form = PartialAttachmentForm(request.POST, request.FILES)
    if not form.is_valid():
        versionForm = PartialVersionForm()
        attachmentForm = form
        imageForm = PartialImageForm()
    form = PartialImageForm(request.POST, request.FILES)
    if not form.is_valid():
        versionForm = PartialVersionForm()
        attachmentForm = PartialAttachmentForm()
        imageForm = form
        return HttpResponseRedirect(reverse('todo_detail', args=[document_id]))
 
    form = PartialVersionForm(request.POST, request.FILES, 
                              contentMetaData=model_to_dict(document))
    if not form.is_valid():