Did I find the right examples for you? yes no

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

src/m/o/modoboa-1.1.1/modoboa/extensions/admin/views/export.py   modoboa(Download)
)
from modoboa.extensions.admin.lib import get_domains, get_identities
from modoboa.extensions.admin.forms import (
    ExportIdentitiesForm, ExportDomainsForm
)
 
    if request.method == "POST":
        form = ExportIdentitiesForm(request.POST)
        form.is_valid()
        fp = cStringIO.StringIO()
        return _export(content, form.cleaned_data["filename"])
 
    ctx["form"] = ExportIdentitiesForm()
    return render(request, "common/generic_modal_form.html", ctx)
 

src/m/o/modoboa-HEAD/modoboa/extensions/admin/views/export.py   modoboa(Download)
)
from modoboa.extensions.admin.lib import get_domains, get_identities
from modoboa.extensions.admin.forms import (
    ExportIdentitiesForm, ExportDomainsForm
)
 
    if request.method == "POST":
        form = ExportIdentitiesForm(request.POST)
        form.is_valid()
        fp = cStringIO.StringIO()
        return _export(content, form.cleaned_data["filename"])
 
    ctx["form"] = ExportIdentitiesForm()
    return render(request, "common/generic_modal_form.html", ctx)