aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/import.rb
diff options
context:
space:
mode:
authorZakaria BOUZIANE2015-05-06 10:38:34 +0200
committerZakaria BOUZIANE2015-05-06 10:38:34 +0200
commited6fd2af69ebecb8d6af496135f1398ef6332b06 (patch)
tree6e69aa36cd98edad74091aea3916ec0b445872ae /app/models/import.rb
parent1f9feab16cc9d7722be1ed0c495c7eeba555ab9a (diff)
downloadchouette-core-ed6fd2af69ebecb8d6af496135f1398ef6332b06.tar.bz2
Showing validation of imports (still css to fix)
Diffstat (limited to 'app/models/import.rb')
-rw-r--r--app/models/import.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/import.rb b/app/models/import.rb
index b51a341b3..903da32aa 100644
--- a/app/models/import.rb
+++ b/app/models/import.rb
@@ -19,6 +19,16 @@ class Import
end
end
+ def compliance_check_validation_report
+ report_path = links["validation_report"]
+ if report_path
+ response = Ievkit.get(report_path)
+ ComplianceCheckResult.new(response)
+ else
+ raise Ievkit::IevError("Impossible to access report path link for validation of import")
+ end
+ end
+
def report
report_path = links["action_report"]
if report_path