We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605bda2 commit fd1abb3Copy full SHA for fd1abb3
roundup/cgi/client.py
@@ -1,4 +1,4 @@
1
-# $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 $
2
3
__doc__ = """
4
WWW request handler (also used in the stand-alone server).
@@ -1778,7 +1778,7 @@ def parsePropsFromForm(self, num_re=re.compile('^\d+$')):
1778
props['name'] = fn
1779
# use this info as the type/filename properties
1780
if propdef.has_key('type'):
1781
- if hasattr(value, 'type'):
+ if hasattr(value, 'type') and value.type:
1782
props['type'] = value.type
1783
elif mimetypes.guess_type(fn)[0]:
1784
props['type'] = mimetypes.guess_type(fn)[0]
0 commit comments