From 1c91e4cd867cf556af1a33c5ea1d9181884911bb Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 20 Jan 2004 05:55:24 +0000 Subject: [PATCH] fix the filename fallback git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2055 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py index b53a38c..672f899 100644 --- a/roundup/cgi/client.py +++ b/roundup/cgi/client.py @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.153 2004-01-20 03:58:38 richard Exp $ +# $Id: client.py,v 1.154 2004-01-20 05:55:24 richard Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -1778,7 +1778,7 @@ You should then receive another email with the new password. props['name'] = fn # use this info as the type/filename properties if propdef.has_key('type'): - if hasattr(value, 'type'): + if hasattr(value, 'type') and value.type: props['type'] = value.type elif mimetypes.guess_type(fn)[0]: props['type'] = mimetypes.guess_type(fn)[0] -- 2.30.2