From 44feb68865682e16e2a6c35b0fa4bfb150a06377 Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Thu, 20 Nov 2014 18:52:39 +0000 Subject: Catch exception when the user attempts to import prefix/asn CSV files with missing children, and allow the user to skip missing children in the import form. see #735 Catch rpki.csv_util.BadCSVSyntax and display an error to the user. svn path=/trunk/; revision=6033 --- rpki/gui/app/forms.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rpki/gui/app/forms.py') diff --git a/rpki/gui/app/forms.py b/rpki/gui/app/forms.py index fffac1be..f173c15d 100644 --- a/rpki/gui/app/forms.py +++ b/rpki/gui/app/forms.py @@ -106,6 +106,11 @@ class ImportClientForm(forms.Form): class ImportCSVForm(forms.Form): csv = forms.FileField(label='CSV file') + ignore_missing_children = forms.BooleanField( + label='Ignore missing children', + help_text='Discard data for children that are not currently in the IRDB', + required=False + ) class UserCreateForm(forms.Form): -- cgit v1.2.3