From: richard Date: Tue, 20 Jan 2004 05:55:24 +0000 (+0000) Subject: fix the filename fallback X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1c91e4cd867cf556af1a33c5ea1d9181884911bb;p=roundup.git fix the filename fallback git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2055 57a73879-2fb5-44c3-a270-3262357dd7e2 --- 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]