changeset 1987:d3df62136c30

fix the filename fallback
author Richard Jones <richard@users.sourceforge.net>
date Tue, 20 Jan 2004 05:55:24 +0000
parents 910b39f8c5b8
children 5660b89f8903
files roundup/cgi/client.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/client.py	Tue Jan 20 03:58:38 2004 +0000
+++ b/roundup/cgi/client.py	Tue Jan 20 05:55:24 2004 +0000
@@ -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 @@
                                 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]

Roundup Issue Tracker: http://roundup-tracker.org/