Adds an explicit function for import file validation acceptability.

git-svn-id: file:///home/svn/framework3/trunk@9636 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Tod Beardsley 2010-06-30 15:28:49 +00:00
parent 2949ef2458
commit 03918eeeda
1 changed files with 10 additions and 0 deletions

View File

@ -1380,6 +1380,16 @@ class DBManager
raise DBImportError.new("Could not automatically determine file type")
end
# Boils down the validate_import_file to a boolean
def validate_import_file(data)
begin
import_filetype_detect(data)
rescue DBImportError
return false
end
return true
end
#
# Nexpose Simple XML
#