From: Diane Trout Date: Tue, 31 Mar 2015 22:38:19 +0000 (-0700) Subject: also validate documents before creating them X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=715690a4cd536c074b5eeff50fadc76f9bd20f8c also validate documents before creating them --- diff --git a/htsworkflow/submission/encoded.py b/htsworkflow/submission/encoded.py index 0850f5a..9bcf77d 100644 --- a/htsworkflow/submission/encoded.py +++ b/htsworkflow/submission/encoded.py @@ -521,6 +521,7 @@ class Document(object): def post(self, server): document_payload = self.create_payload() + server.validate(document_payload, 'document') return server.post_json('/documents/', document_payload) def save(self, filename):