projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ca422e
)
also validate documents before creating them
author
Diane Trout
<diane@ghic.org>
Tue, 31 Mar 2015 22:38:19 +0000
(15:38 -0700)
committer
Diane Trout
<diane@ghic.org>
Tue, 31 Mar 2015 22:38:19 +0000
(15:38 -0700)
htsworkflow/submission/encoded.py
patch
|
blob
|
history
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):