projets
/
progfou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b182779
)
w.c.s : ahem… il faut accepter le champ comme d'un type valide tout de même !
author
Progfou
<jean-christophe.andre@auf.org>
Wed, 19 Jan 2011 16:37:50 +0000
(23:37 +0700)
committer
Progfou
<jean-christophe.andre@auf.org>
Wed, 19 Jan 2011 16:37:50 +0000
(23:37 +0700)
wcs/wcs-extract
patch
|
blob
|
blame
|
history
diff --git
a/wcs/wcs-extract
b/wcs/wcs-extract
index
338326c
..
08da8c1
100755
(executable)
--- a/
wcs/wcs-extract
+++ b/
wcs/wcs-extract
@@
-133,7
+133,9
@@
def extract_data(formdef, output_directory):
elif isinstance(field, DateField):
result[field_name] = '%04d-%02d-%02d' % (data.tm_year,
data.tm_mon, data.tm_mday)
- elif isinstance(field, FileField) and data is not None:
+ elif isinstance(field, FileField):
+ if data is None:
+ continue
if '.' in data.orig_filename:
extension = data.orig_filename.rpartition('.')[2].lower()
else: # il n'y a pas d'extension dans le nom de fichier