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

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

src/f/r/freenas-serviio-HEAD/nanobsd/plugins/serviio_pbi/resources/serviioUI/freenas/views.py   freenas-serviio(Download)
    try:
        form = forms.ServiioForm(serviio.__dict__, instance=serviio, jail=jail)
        form.is_valid()
        form.save()
    except ValueError:
    try:
        form = forms.ServiioForm(serviio.__dict__, instance=serviio, jail=jail)
        form.is_valid()
        form.save()
    except ValueError:
        instance=serviio,
        jail=jail)
    if form.is_valid():
        form.save()
        return JsonResponse(request, error=True, message="Serviio settings successfully saved.")