add import of printed documents
This commit is contained in:
parent
86a11bd1fa
commit
dbe72764b0
|
@ -154,6 +154,9 @@ class SyncFromThemis(UtilityView):
|
|||
if data.get('fichier'):
|
||||
object.file = NamedBlobFile(urllib2.urlopen(data.get('fichier')).read(),
|
||||
filename=data.get('id')+'.pdf')
|
||||
if data.get('document_imprime'):
|
||||
object.file = NamedBlobFile(urllib2.urlopen(data.get('document_imprime')).read(),
|
||||
filename=data.get('id')+'.pdf')
|
||||
if data.get('object_type'):
|
||||
if is_question:
|
||||
object.questype = data.get('object_type').replace(' (D)', '')
|
||||
|
|
Reference in New Issue