projects
/
htsworkflow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
also validate documents before creating them
[htsworkflow.git]
/
htsworkflow
/
submission
/
encoded.py
diff --git
a/htsworkflow/submission/encoded.py
b/htsworkflow/submission/encoded.py
index 0850f5a29937f89b19062b03b7574381f88f728d..9bcf77daf474208e96c83e5798a5f686e089ea81 100644
(file)
--- 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):