author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 19 Jan 2010 18:22:05 +0100 | |
changeset 4273 | 183cd0df6f1a |
parent 4272 | 12f336008191 |
child 4274 | 4601ba407ed6 |
web/formfields.py | file | annotate | diff | comparison | revisions |
--- a/web/formfields.py Tue Jan 19 18:21:59 2010 +0100 +++ b/web/formfields.py Tue Jan 19 18:22:05 2010 +0100 @@ -572,7 +572,7 @@ filename, _, stream = value # value is a 3-uple (filename, mimetype, stream) value = Binary(stream.read()) - if not val.getvalue(): # usually an unexistant file + if not value.getvalue(): # usually an unexistant file value = None else: # set filename on the Binary instance, may be used later in hooks