diff options
author | Michael Elkins <melkins@tislabs.com> | 2014-11-20 18:52:39 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2014-11-20 18:52:39 +0000 |
commit | 44feb68865682e16e2a6c35b0fa4bfb150a06377 (patch) | |
tree | e8533b19fc92287312766811c8010caf879719e8 /rpki/gui/app/forms.py | |
parent | d1bf25209dcc88832d61e1b66d6a9a3175f9f5f2 (diff) |
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
Diffstat (limited to 'rpki/gui/app/forms.py')
-rw-r--r-- | rpki/gui/app/forms.py | 5 |
1 files changed, 5 insertions, 0 deletions
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): |