add import of printed documents

This commit is contained in:
Frédéric Péters 2011-12-04 14:06:22 +01:00
parent 86a11bd1fa
commit dbe72764b0
1 changed files with 3 additions and 0 deletions

View File

@ -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)', '')